forked from ecell/ecell4_base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (28 loc) · 1016 Bytes
/
.travis.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
dist: bionic
language: cpp
os:
- linux
- osx
env:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7.3
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda info
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -q conda-build anaconda-client
- conda create -q -n test-environment python=$PYTHON_VERSION
- source activate test-environment
script:
- conda build conda.recipe --python $PYTHON_VERSION
- conda install --use-local ecell4_base
deploy:
- provider: script
script: anaconda -t $CONDA_UPLOAD_TOKEN upload /*/travis/miniconda/conda-bld/*/*.tar.bz2
on:
tags: true
skip_cleanup: true