-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
46 lines (43 loc) · 1.57 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
#-------------------------------------------------------------------------------
# .travis.yml
# Author: Alan D. Snow, 2017
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# System specifications for Travis CI
#-------------------------------------------------------------------------------
language: c
os:
- linux
env:
- TRAVIS_PYTHON_VERSION="2"
- TRAVIS_PYTHON_VERSION="3"
matrix:
fast_finish: true
allow_failures:
- env: TRAVIS_PYTHON_VERSION="3"
notifications:
email: false
before_install:
#-----------------------------------------------------------------------------
# Install Tethys Platform
#-----------------------------------------------------------------------------
- wget https://raw.githubusercontent.com/tethysplatform/tethys/release/scripts/install_tethys.sh
- bash install_tethys.sh -b release --python-version $TRAVIS_PYTHON_VERSION
- export PATH=$HOME/tethys/miniconda/bin:$PATH
- conda config --set always_yes yes
#-----------------------------------------------------------------------------
# Activate Tethys Conda Environment & Install Dependencies
#-----------------------------------------------------------------------------
- source activate tethys
- conda install netcdf4 pandas scipy xarray
# install spt_dataset_services
- cd ..
- git clone https://github.com/erdc-cm/spt_dataset_manager.git
- cd spt_dataset_manager
- python setup.py install
install:
- cd $TRAVIS_BUILD_DIR
- pip install -e .[tests]
script:
- flake8
- pylint tethysapp setup.py