-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.drone.yml
53 lines (51 loc) · 2.6 KB
/
.drone.yml
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
clone:
depth: 2
recursive: true
submodule_override:
external/anyode: git://github.com/bjodah/anyode.git
cache:
mount:
- /drone/sund-3.1.2-klu
- /drone/sund-3.1.2-nolapack-noklu-extended
build:
image: bjodah/bjodahimg18dev:v1.3
environment:
- OMP_NUM_THREADS=1
- ANYODE_NUM_THREADS=2
- CPLUS_INCLUDE_PATH=/usr/include/suitesparse
- LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
- LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
commands:
- git fetch -tq
- if [ ! -d /drone/sund-3.1.2-klu ]; then .ci/get_sundials.sh 3.1.2 /drone/sund-3.1.2-klu -DLAPACK_ENABLE:BOOL=ON -DSUNDIALS_INDEX_TYPE:STRING="int32_t" -DKLU_ENABLE:BOOL=ON -DKLU_INCLUDE_DIR=/usr/include/suitesparse -DKLU_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu; fi
- if [ ! -d /drone/sund-3.1.2-nolapack-noklu-extended ]; then .ci/get_sundials.sh 3.1.2 /drone/sund-3.1.2-nolapack-noklu-extended -DLAPACK_ENABLE:BOOL=OFF -DSUNDIALS_INDEX_TYPE:STRING="int32_t" -DSUNDIALS_PRECISION:STRING="extended" -DKLU_ENABLE:BOOL=OFF; fi
# Need to install pycvodes from source for extended precision/int64 test, since
# that requires no LAPACK, whereas the pypi version installs with LAPACK
- git clone --recurse-submodules https://github.com/bjodah/pycvodes.git /drone/pycvodes
- cd /drone/pycvodes
- LIBRARY_PATH=/drone/sund-3.1.2-nolapack-noklu-extended/lib:$LIBRARY_PATH CPLUS_INCLUDE_PATH=/drone/sund-3.1.2-nolapack-noklu-extended/include:$CPLUS_INCLUDE_PATH LD_LIBRARY_PATH=/drone/sund-3.1.2-nolapack-noklu-extended/lib:$LD_LIBRARY_PATH PYCVODES_LAPACK=0 PYCVODES_NO_KLU=1 python3 setup.py install
- cd -
- .ci/run_ci.sh pyodesys /drone/sund-3.1.2-nolapack-noklu-extended
- rm -r /usr/local/lib/python*/dist-packages/pycvodes*
# Need to remove cache so that new sundials/pyodesys doesn't try to use the old
# compiled native code wrappers
- rm -r /root/.cache/*pyodesys*
# "Normal" (double, int) tests
- .ci/run_ci.sh pyodesys /drone/sund-3.1.2-klu
- ./scripts/prepare_deploy.sh
- rm -r ~/.cache/python*pyodesys*/
- PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah # sym, pyodesys, pyneqsys
- PATH=/opt/miniconda3/bin:$PATH conda upgrade --quiet conda-build
- PATH=/opt/miniconda3/bin:$PATH conda build --output-folder "deploy/public_html/branches/${CI_BRANCH}" conda-recipe
- bash -c '[[ $(python3 setup.py --version) =~ ^[0-9]+.* ]]'
- ./scripts/grep-for-merge-blocking-token.sh
- ./scripts/grep-for-binary-data.sh
deploy:
rsync:
host: hera.physchem.kth.se
port: 22
user: pyodesys
source: deploy/
target: ~
recursive: true
delete: false