This repository was archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
78 lines (69 loc) · 1.93 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: generic
sudo: false
os:
- linux
- osx
matrix:
fast_finish: true
allow_failures:
- os: osx
- env: Python=3.7 THREDDS="test"
- env: Python=3.7 THREDDS="dev"
- env: Python=3.7 THREDDS="jetstream"
exclude:
- os: osx
env: Python=3.7 THREDDS="test"
- os: osx
env: Python=3.7 THREDDS="dev"
- os: osx
env: Python=3.7 THREDDS="jetstream"
env:
global:
- MINICONDA_DIR="$HOME/miniconda"
matrix:
- Python=3.6 THREDDS="main"
- Python=3.7 THREDDS="main"
- Python=3.7 THREDDS="test"
- Python=3.7 THREDDS="dev"
- Python=3.7 THREDDS="jetstream"
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export CONDA_OS_NAME="MacOSX";
else
export CONDA_OS_NAME="Linux";
fi;
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-${CONDA_OS_NAME}-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $MINICONDA_DIR
- export PATH="$MINICONDA_DIR/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- sed -i -e "s/python=3/python=$Python/" environment.yml;
install:
- conda env create -q -f environment.yml
- source activate gallery
- conda install -c conda-forge flake8 flake8-quotes flake8-mutable flake8-pep3101 flake8-comprehensions flake8-builtins flake8-import-order
- conda list
script:
- if [[ $THREDDS != "main" ]]; then
python thredds_test_converter.py $THREDDS;
fi;
- flake8 examples metpy_mondays
- pushd website
- travis_retry make html
- popd
before_deploy:
# Remove unused, unminified javascript from sphinx
- touch website/build/html/.nojekyll;
- rm -f website/build/html/_static/jquery-*.js;
- rm -f website/build/html/_static/underscore-*.js;
- rm -f website/build/html/.buildinfo
deploy:
provider: script
script: deploy/deploy.sh
skip_cleanup: true
on:
branch: master
os: linux
condition: $Python == '3.7'