-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (26 loc) · 884 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
language: c
env:
- PYTHON_VERSION="3.6"
- PYTHON_VERSION="3.7"
os:
- linux
- osx
matrix:
fast_finish: true
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p "$HOME"/miniconda
- source "$HOME"/miniconda/etc/profile.d/conda.sh
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
- conda config --add channels conda-forge
- conda install conda=4.7.5
- conda update --all -y
- conda info -a
- conda create -n conda_env python=$PYTHON_VERSION
- conda activate conda_env
- conda env update -f "binder/environment.yml"
script:
- conda activate conda_env
- python setup.py install
- python -c "import anamic; anamic.run_all_tests()"