This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
/
.travis.yml
55 lines (48 loc) · 1.48 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
# Since we really don't want any of Travis' Python
language: generic
sudo: false
os:
- linux
- osx
matrix:
fast_finish: true
allow_failures:
- os: osx
env:
global:
- MINICONDA_DIR="$HOME/miniconda"
matrix:
- Python=3.5
- Python=3.6
before_install:
# Taken from: http://conda.pydata.org/docs/travis.html
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-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 $MINICONDA_DIR
- export PATH="$MINICONDA_DIR/bin:$PATH"
- export QT_QPA_PLATFORM="offscreen"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -q pyyaml
- conda info -a
- sed -i -e "s/python=3/python=$Python/" environment.yml
install:
- conda env create -q -f environment.yml
- source activate unidata-workshop
- python --version
- conda list
before_script:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 10;
fi;
script:
- python notebooks_preprocess.py
- python run_notebooks.py
- python notebooks/Command_Line_Tools/synopticplot.py --gfslevel 850 --gfsfield Relative_humidity_isobaric --savefig --imgformat jpg
- python notebooks/Command_Line_Tools/skewt.py --date 20170420 --hour 0 --station BMX --savefig --imgformat jpg