-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
49 lines (42 loc) · 1.55 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
language: python
sudo: false
matrix:
fast_finish: true
include:
- python: 2.7
env: TEST_TARGET=default
- python: 3.5
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=coding_standards
allow_failures:
- python: 3.6
env: TEST_TARGET=coding_standards
before_install:
# conda setup (see: http://conda.pydata.org/docs/travis.html):
# - sudo apt-get update
- wget http://bit.ly/miniconda -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update conda --yes
- conda config --set show_channel_urls true
- conda config --add channels conda-forge --force
# Useful for debugging any issues with conda
# - conda info -a
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
- source activate TEST
# test source:
install:
# - pip install -r requirements.txt
# - pip install -e .
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install catalog-query-${version}.tar.gz && popd
script:
- if [[ $TEST_TARGET == 'default' ]]; then
catalog-query -c https://data.ioos.us/api/3 -a dataset_list -q=name:NANOOS ;
catalog-query -c https://data.ioos.us/api/3 -a resource_cc_check -q=name:NANOOS,resource_format:OPeNDAP -o nanoos_opendap_compliance_results.csv -e nanoos_opendap_compliance_errors.csv ;
fi
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
flake8 --ignore=E501,F401 --statistics catalog_query ;
fi