Repository navigation
Expand file tree
/
Copy path.woodpecker.yaml
More file actions
92 lines (85 loc) · 2.9 KB
/
Copy path.woodpecker.yaml
File metadata and controls
92 lines (85 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
variables:
- &ci_image 'cont-reg.bjodah.se:443/bjodah/triceratops-4:48'
when:
- event: [push]
steps:
- name: restore-cache
image: *ci_image
environment:
ARTIFACTS_PASS:
from_secret: ARTIFACTS_PASS
FTP_SERVER:
from_secret: FTP_SERVER
commands:
- curl ftp://${CI_REPO_NAME}:$${ARTIFACTS_PASS}@$${FTP_SERVER}/cache/cache-ci.tar | tar -C / x || mkdir -p $CI_WORKSPACE/cache-ci/pip_cache
when:
- event: push
repo: bjodah/pyodesys
- name: test-sund-6.7.0-rel
depends_on:
- restore-cache
image: *ci_image
environment:
CC: gcc-14
CXX: g++-14
CXXFLAGS: -std=c++20
OMP_NUM_THREADS: 1
ANYODE_NUM_THREADS: 2
CPLUS_INCLUDE_PATH: /usr/include/suitesparse:/opt-4/boost-1.91.0-release/include
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu
LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu
SUNDBASE: /opt-3/sundials-6.7.0-release
commands:
- cp -ra $CI_WORKSPACE /tmp/test-sund-6.7.0-rel
- cd /tmp/test-sund-6.7.0-rel
- bash -lc "ulimit -v 2048000; .ci/run_ci.sh pyodesys $SUNDBASE"
- ./scripts/prepare_deploy.sh
- bash -c '[[ $(python3 setup.py --version) =~ ^[0-9]+.* ]]'
- cp -ra /tmp/test-sund-6.7.0-rel/deploy $CI_WORKSPACE/
- name: test-sund-6.7.0-extended
depends_on:
- restore-cache
image: *ci_image
environment:
CC: gcc-14
CXX: g++-14
CXXFLAGS: -std=c++20
OMP_NUM_THREADS: 1
ANYODE_NUM_THREADS: 2
CPLUS_INCLUDE_PATH: /usr/include/suitesparse:/opt-4/boost-1.91.0-release/include
LIBRARY_PATH: /usr/lib/x86_64-linux-gnu
LD_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu
SUNDBASE: /opt-3/sundials-6.7.0-extended
PYCVODES_NO_LAPACK: 1
PYCVODES_NO_KLU: 1
commands:
- cp -ra $CI_WORKSPACE/ /tmp/test-sund-6.7.0-extended
- cd /tmp/test-sund-6.7.0-extended
- bash -lc "ulimit -v 4096000; .ci/run_ci.sh pyodesys $SUNDBASE"
- ./scripts/grep-for-merge-blocking-token.sh
- ./scripts/grep-for-binary-data.sh
- name: rebuild-cache
image: *ci_image
environment:
ARTIFACTS_PASS:
from_secret: ARTIFACTS_PASS
FTP_SERVER:
from_secret: FTP_SERVER
commands:
- find $CI_WORKSPACE/cache-ci/ -type f -mtime +90 -exec rm {} \;
- tar cf cache-ci.tar $CI_WORKSPACE/cache-ci/
- curl -T cache-ci.tar ftp://${CI_REPO_NAME}:$${ARTIFACTS_PASS}@$${FTP_SERVER}/cache/
depends_on:
- test-sund-6.7.0-rel
- name: deploy-public-html
image: *ci_image
environment:
ARTIFACTS_PASS:
from_secret: ARTIFACTS_PASS
FTP_SERVER:
from_secret: FTP_SERVER
commands:
- tar -C deploy/public_html -czf ${CI_REPO_NAME}-${CI_COMMIT_BRANCH}.tar.gz .
- curl -T ${CI_REPO_NAME}-${CI_COMMIT_BRANCH}.tar.gz ftp://${CI_REPO_NAME}:$${ARTIFACTS_PASS}@$${FTP_SERVER}/public_html/
depends_on:
- test-sund-6.7.0-rel