-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
executable file
·50 lines (50 loc) · 1.61 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: python
python:
- "3.6"
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- sudo apt-get update
- echo $TRAVIS_PYTHON_VERSION
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pytest pyyaml scipy numpy psutil six requests 'scikit-learn<=0.23.1' scikit-image 'gdal==2.4.1' pytest-cov coverage pip numba 'lightgbm>=2.1.0' pyproj
- source activate test-environment
- conda info -a
#- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
# pip install https://github.com/MarcYin/gp_emulator/archive/master.zip;
# else
# pip install gp_emulator==1.6.1;
# fi
- pip install coveralls codecov gsutil
- conda list
script:
# Output something every 10 minutes or Travis kills the job
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
- py.test -s --cov
#Killing background sleep loop
- kill %1
- cp /dev/null SIAC/data/.earthdata_auth
- coverage xml
#- export SIAC_VERSION=$TRAVIS_TAG
deploy:
provider: pypi
user: $PYPI_USER
password: $PYPI_PASS
skip_existing: true
on:
branch: master
after_success:
- codecov
- coveralls