-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.travis.yml
32 lines (27 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
32
language: python
python:
- "3.7"
# limit git clone depth to 50 commits
git:
depth: 50
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda config --add channels conda-forge
- conda config --add channels spectrocat
- conda config --set channel_priority strict
script:
- conda create -n py$TRAVIS_PYTHON_VERSION python=$TRAVIS_PYTHON_VERSION pytest numpy scipy
- conda activate py$TRAVIS_PYTHON_VERSION
- conda update pytest
- pip install .
- pytest
after_success:
- conda activate py$TRAVIS_PYTHON_VERSION
- conda install conda-build anaconda-client
- bash recipe/conda_upload.sh