forked from icesat2py/icepyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1.29 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
language: python
before_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
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
install:
- conda create --name icepyx-env --channel conda-forge python=$TRAVIS_PYTHON_VERSION proj=7.2.0 geos
- source activate icepyx-env
- pip install -r requirements.txt -r requirements-dev.txt
- pip install -e .[complete]
stages:
- name: basic tests
if: (type = pull_request) OR (type = push AND repo = icesat2py/icepyx AND branch IN (main, development))
- name: behind Earthdata
if: branch = main OR commit_message =~ nsidc_tests OR type = cron
#ultimately move basic tests list into a separate script with the list of files to run (then this can be put into a matrix and parallellized as well)
jobs:
include:
- stage: basic tests
script: pytest icepyx/ --ignore icepyx/tests/behind_NSIDC_API_login.py
after_success: codecov
# - stage: behind Earthdata
# script:
# - export NSIDC_LOGIN=$NSIDC_LOGIN
# - pytest icepyx/tests/behind_NSIDC_API_login.py