Skip to content

Commit

Permalink
Add Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
pksohn committed Mar 31, 2017
1 parent 028f635 commit 86ba171
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: python
sudo: false
python:
- '2.7'
- '3.5'

install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- 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
- conda info -a
- |
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pip numpy pandas pytest matplotlib scipy statsmodels pyyaml pycodestyle
- source activate test-environment
- conda list
# UPDATE THESE WHEN LATEST VERSIONS PUSHED TO PIP
- pip install https://github.com/UDST/orca/archive/master.zip
- pip install https://github.com/pksohn/urbansim/archive/python3.zip
- pip install .
# UPDATE BRANCH LATER
- cd .. && git clone -b pep8 git@github.com:urbansim/zone_model.git
- cd zone_model && pip install .
- cd zone_model/data && curl -O https://storage.googleapis.com/urbansim/zone_model/model_data.h5
- cd $TRAVIS_BUILD_DIR && pip install .

script:
- pycodestyle variable_generators
- cd ../zone_model/zone_model/ && python simulate.py

0 comments on commit 86ba171

Please sign in to comment.