/
.drone.yml
34 lines (30 loc) · 1.14 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
cache:
mount:
- /drone/sundials-3.1.2
- /drone/pyusrb
build:
image: bjodah/bjodahimg18dev:v1.4
environment:
- SUN3BASE=/drone/sundials-3.1.2
- PYTHONUSERBASE=/drone/pyusrb
commands:
- git fetch -tq
- if [ ! -d $SUN3BASE ]; then .ci/get_sundials.sh 3.1.2 $SUN3BASE -DLAPACK_ENABLE:BOOL=ON -DSUNDIALS_INDEX_TYPE:STRING="int32_t" $SUN3BASE; fi
- if [ ! -d $PYTHONUSERBASE ]; then mkdir $PYTHONUSERBASE; fi
- CPATH=$SUN3BASE/include LIBRARY_PATH=$SUN3BASE/lib LD_LIBRARY_PATH=$SUN3BASE/lib ./.ci/run_ci.sh chempy
- ./.ci/prepare_deploy.sh
- PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah # sym, pyodesys, pyneqsys
- PATH=/opt/miniconda3/bin:$PATH conda update --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]+.* ]]'
- ./.ci/grep-for-merge-blocking-token.sh
- ./.ci/grep-for-binary-data.sh
deploy:
rsync:
host: hera.physchem.kth.se
user: chempy
port: 22
source: deploy/
target: ~
recursive: true
delete: false