build:
  image: bjodah/scipy-2017-codegen-tutorial
  environment:
    - CONDA_BLD_PATH=/root/conda-bld
    - ANACONDA_TOKEN=$$ANACONDA_TOKEN
  commands:
    - sed -i '$ d' environment.yml
    - conda env create --quiet -f environment.yml
    - bin/render_notebooks.sh
    - bin/prepare_deploy.sh
    - mkdir $CONDA_BLD_PATH
    - conda build conda-recipe/
    - cp $CONDA_BLD_PATH/linux-64/*.tar.bz2 deploy/
    - anaconda -t ${ANACONDA_TOKEN} upload --no-progress -u sympy --force $CONDA_BLD_PATH/linux-64/*.tar.bz2

deploy:

  rsync:
    host: hera.physchem.kth.se
    user: scipy-2017-codegen-tutorial
    port: 22
    source: deploy/
    target: ~/public_html
    recursive: true
    delete: false

build:
  image: bjodah/scipy-2017-codegen-tutorial
  environment:
    - CONDA_BLD_PATH=/root/conda-bld
    - ANACONDA_TOKEN=$$ANACONDA_TOKEN
  commands:
    - sed -i '$ d' environment.yml
    - conda env create --quiet -f environment.yml
    - bin/render_notebooks.sh
    - bin/prepare_deploy.sh
    - mkdir $CONDA_BLD_PATH
    - conda build --python 27 --python 34 --python 35 --python 36 conda-recipe/
    - conda convert -p all --output $CONDA_BLD_PATH $CONDA_BLD_PATH/linux-64/*.tar.bz2
    - cp $CONDA_BLD_PATH/* deploy/
    - anaconda -t ${ANACONDA_TOKEN} upload --no-progress -u sympy --force $CONDA_BLD_PATH/*/*.tar.bz2

deploy:

  rsync:
    host: hera.physchem.kth.se
    user: scipy-2017-codegen-tutorial
    port: 22
    source: deploy/
    target: ~/public_html
    recursive: true
    delete: false

Build conda package for multiple Python versions
Build conda package for multiple Python versions
