-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 0.11.x ew ele (#103) * Make ew_ele datastructures type agnostic * New CI (drone-1.0) * fix bad indentation * minor fixes * syntaxfix * pip.conf * bash needed for echo -e ? * req. pycvodes >=0.11.11 * fix ew_ele in native pycvodes req. pycvodes>=0.11.12 * more generous timeout * up timeout * fix pytest cmdline * tweak CI (conda) * Simplify conda-recipe version string
- Loading branch information
Showing
15 changed files
with
227 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,103 @@ | ||
clone: | ||
depth: 2 | ||
recursive: true | ||
submodule_override: | ||
external/anyode: git://github.com/bjodah/anyode.git | ||
cache: | ||
mount: | ||
- /drone/sund-3.2.1-klu | ||
- /drone/sund-3.2.1-nolapack-noklu-extended | ||
build: | ||
image: bjodah/bjodahimg18dev:v1.4 | ||
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.2.1-klu ]; then .ci/get_sundials.sh 3.2.1 /drone/sund-3.2.1-klu -DLAPACK_ENABLE:BOOL=ON -DSUNDIALS_INDEX_SIZE=32 -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.2.1-nolapack-noklu-extended ]; then .ci/get_sundials.sh 3.2.1 /drone/sund-3.2.1-nolapack-noklu-extended -DLAPACK_ENABLE:BOOL=OFF -DSUNDIALS_INDEX_SIZE=32 -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.2.1-nolapack-noklu-extended/lib:$LIBRARY_PATH CPLUS_INCLUDE_PATH=/drone/sund-3.2.1-nolapack-noklu-extended/include:$CPLUS_INCLUDE_PATH LD_LIBRARY_PATH=/drone/sund-3.2.1-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.2.1-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.2.1-klu | ||
- ./scripts/prepare_deploy.sh | ||
- .ci/test_py2.sh pyodesys /drone/sund-3.2.1-klu | ||
- rm -r ~/.cache/python*pyodesys*/ | ||
- git clean -fd | ||
- # 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 | ||
default: | ||
image: plugins/git | ||
recursive: true | ||
submodule_override: | ||
external/anyode: git://github.com/bjodah/anyode.git | ||
|
||
pipeline: | ||
restore-cache: | ||
image: drillster/drone-volume-cache | ||
restore: true | ||
mount: | ||
- ./ci_cache/sund-3.2.1-klu | ||
- ./ci_cache/sund-4.1.0-nolapack-noklu-extended | ||
- ./ci_cache/conda_packages | ||
- ./ci_cache/pip_cache | ||
volumes: | ||
- /tmp/cache:/cache | ||
ttl: 90 # liftetime in days | ||
|
||
test-sund-3.2.1-klu: | ||
group: testing | ||
image: bjodah/bjodahimg18:v1.5 | ||
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: | ||
- export SUNDBASE=$(pwd)/ci_cache/sund-3.2.1-klu | ||
- if [ ! -d $SUNDBASE ]; then .ci/get_sundials.sh 3.2.1 $SUNDBASE -DLAPACK_ENABLE:BOOL=ON -DSUNDIALS_INDEX_SIZE=32 -DKLU_ENABLE:BOOL=ON -DKLU_INCLUDE_DIR=/usr/include/suitesparse -DKLU_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu; fi | ||
- mkdir -p $HOME/.config/pip/; bash -c 'echo -e "[global]\nno-cache-dir = false\ndownload-cache = $(pwd)/ci_cache/pip_cache" >$HOME/.config/pip/pip.conf' | ||
- bash -c "ulimit -v 2048000; .ci/run_ci.sh pyodesys $SUNDBASE" | ||
- ./scripts/prepare_deploy.sh | ||
- bash -c '[[ $(python3 setup.py --version) =~ ^[0-9]+.* ]]' | ||
- ./scripts/grep-for-merge-blocking-token.sh | ||
- ./scripts/grep-for-binary-data.sh | ||
|
||
test-sund-4.1.0-nolapack-noklu-extended: | ||
group: testing | ||
image: bjodah/bjodahimg18:v1.5 | ||
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: | ||
- export SUNDBASE=$(pwd)/ci_cache/sund-4.1.0-nolapack-noklu-extended | ||
- if [ ! -d $SUNDBASE ]; then .ci/get_sundials.sh 4.1.0 $SUNDBASE -DLAPACK_ENABLE:BOOL=OFF -DSUNDIALS_INDEX_SIZE=32 -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 /tmp/pycvodes | ||
- cd /tmp/pycvodes | ||
- LIBRARY_PATH=$SUNDBASE/lib:$LIBRARY_PATH CPATH=$SUNDBASE/include:$CPATH LD_LIBRARY_PATH=$SUNDBASE/lib:$LD_LIBRARY_PATH PYCVODES_LAPACK=0 PYCVODES_NO_KLU=1 python3 setup.py install | ||
- cd - | ||
- mkdir -p $HOME/.config/pip/; bash -c 'echo -e "[global]\nno-cache-dir = false\ndownload-cache = $(pwd)/ci_cache/pip_cache" >$HOME/.config/pip/pip.conf' | ||
- bash -c "ulimit -v 2048000; .ci/run_ci.sh pyodesys $SUNDBASE" | ||
|
||
test-py2: | ||
image: bjodah/bjodahimg18:v1.5 | ||
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: | ||
- export SUNDBASE=$(pwd)/ci_cache/sund-3.2.1-klu | ||
- bash -c "ulimit -v 2048000; .ci/test_py2.sh pyodesys $SUNDBASE" | ||
|
||
test-conda-recipe: | ||
group: testing | ||
image: bjodah/bjodahimg18dev:v1.5 | ||
commands: | ||
- export CONDA_PKGS_DIRS=$(pwd)/ci_cache/conda_packages | ||
- PATH=/opt/miniconda3/bin:$PATH conda update conda-build | ||
- PATH=/opt/miniconda3/bin:$PATH conda build --output-folder "deploy/public_html/branches/${CI_BRANCH}" conda-recipe | ||
|
||
deploy: | ||
|
||
rsync: | ||
host: hera.physchem.kth.se | ||
rebuild-cache: | ||
image: drillster/drone-volume-cache | ||
rebuild: true | ||
mount: | ||
- ./ci_cache/sund-3.2.1-klu | ||
- ./ci_cache/sund-4.1.0-nolapack-noklu-extended | ||
- ./ci_cache/conda_packages | ||
- ./ci_cache/pip_cache | ||
volumes: | ||
- /tmp/cache:/cache | ||
|
||
deploy: | ||
image: drillster/drone-rsync | ||
when: | ||
event: [push] | ||
hosts: [ "hera.physchem.kth.se" ] | ||
port: 22 | ||
user: pyodesys | ||
source: deploy/ | ||
target: ~ | ||
recursive: true | ||
delete: false | ||
secrets: [ rsync_key ] # secret only set from event "push" not "pull_request" | ||
source: ./deploy/public_html | ||
target: ~/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ gks.svg | |
.ipython/ | ||
.jupyter/* | ||
!.jupyter/jupyter_notebook_config.py | ||
tmp/ | ||
.gdb* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.