build:
  image: bjodah/bjodahimg16dev:latest
  environment:
    - CPLUS_INCLUDE_PATH=/opt/boost_1_63_0/include
    - LIBRARY_PATH=/opt/boost_1_63_0/lib
    - LD_LIBRARY_PATH=/opt/boost_1_63_0/lib
    - WITH_OPENMP=1
  commands:
    - PYCVODES_LAPACK=lapack,blas ./scripts/ci.sh chemreac
    - CHEMREAC_INTEGRATION_KWARGS="dict(integrator='cvode')" PYTHON=python3 ./scripts/run_tests.sh chemreac --cov chemreac --cov-report html
    - ./scripts/coverage_badge.py htmlcov/ htmlcov/coverage.svg
    - ./scripts/generate_docs.sh
    - bash -c '[[ $(python setup.py --version) =~ ^[0-9]+.* ]]'
    - ./scripts/prepare_deploy.sh
    - PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah  # sym, pyodesys, pyneqsys
    - PATH=/opt/miniconda3/bin:$PATH conda build conda-recipe
    - if grep "DO-NOT-MERGE!" -R . --exclude ".drone.yml"; then exit 1; fi

deploy:

  rsync:
    host: hera.physchem.kth.se
    port: 22
    user: chemreac
    source: deploy/
    target: ~
    recursive: true
    delete: false

build:
  image: bjodah/bjodahimg16dev:v1.3
  environment:
    - CPLUS_INCLUDE_PATH=/opt/boost_1_65_0/include
    - LIBRARY_PATH=/opt/boost_1_65_0/lib
    - LD_LIBRARY_PATH=/opt/boost_1_65_0/lib
    - WITH_OPENMP=1
  commands:
    - PYCVODES_LAPACK=lapack,blas ./scripts/ci.sh chemreac
    - CHEMREAC_INTEGRATION_KWARGS="dict(integrator='cvode')" PYTHON=python3 ./scripts/run_tests.sh chemreac --cov chemreac --cov-report html
    - ./scripts/coverage_badge.py htmlcov/ htmlcov/coverage.svg
    - ./scripts/generate_docs.sh
    - bash -c '[[ $(python setup.py --version) =~ ^[0-9]+.* ]]'
    - ./scripts/prepare_deploy.sh
    - PATH=/opt/miniconda3/bin:$PATH conda config --add channels bjodah  # sym, pyodesys, pyneqsys
    - PATH=/opt/miniconda3/bin:$PATH conda build conda-recipe
    - if grep "DO-NOT-MERGE!" -R . --exclude ".drone.yml"; then exit 1; fi

deploy:

  rsync:
    host: hera.physchem.kth.se
    port: 22
    user: chemreac
    source: deploy/
    target: ~
    recursive: true
    delete: false

Use tagged dockerimage for CI run
Use tagged dockerimage for CI run
