build:
  image: bjodah/bjodahimg16:v1.2
  commands:
    - python2 -m pip install --upgrade pip  # pip 8.1.1 has a bug
    - python3 -m pip install --upgrade pip  # pip 8.1.1 has a bug
    - python2 -m pip install git+https://github.com/bjodah/pycvodes.git@get_dx_max  # DO-NOT-MERGE!
    - python3 -m pip install git+https://github.com/bjodah/pycvodes.git@get_dx_max  # DO-NOT-MERGE!
    - ./scripts/ci.sh pycvodes
    - (cd examples/; ipython2 nbconvert --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300 *.ipynb)
    - (cd examples/; ../scripts/render_index.sh *.html)
    - ./scripts/generate_docs.sh
    - ./scripts/prepare_deploy.sh
    - if grep "DO-NOT-MERGE!" -R . --exclude ".drone.yml"; then exit 1; fi

deploy:

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

build:
  image: bjodah/bjodahimg16:v1.2
  commands:
    - bash -c '[[ $(python setup.py --version) =~ ^[0-9]+.* ]]'
    - python2 -m pip install --upgrade pip  # pip 8.1.1 has a bug
    - python3 -m pip install --upgrade pip  # pip 8.1.1 has a bug
    - ./scripts/ci.sh pycvodes
    - (cd examples/; ipython2 nbconvert --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300 *.ipynb)
    - (cd examples/; ../scripts/render_index.sh *.html)
    - ./scripts/generate_docs.sh
    - ./scripts/prepare_deploy.sh
    - if grep "DO-NOT-MERGE!" -R . --exclude ".drone.yml"; then exit 1; fi

deploy:

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

Revert incorrect ci script change
Revert incorrect ci script change
