Skip to content

Commit

Permalink
Update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman-lab committed Nov 25, 2015
1 parent de530d3 commit b57df1a
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ python:
jdk:
- openjdk7

sudo: false

before_install:
# install miniconda
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-3.7.3-Linux-x86_64.sh -O miniconda.sh;
else
Expand All @@ -22,19 +22,12 @@ before_install:
- conda info -a

install:
# Setup miniconda
- conda create --yes -q -n test-environment python=$TRAVIS_PYTHON_VERSION nose numpy scipy scikit-learn scikit-image matplotlib
- source activate test-environment
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
# Install Spark
- wget http://d3kbcqa49mib13.cloudfront.net/spark-1.4.1-bin-hadoop1.tgz
- tar -xzf spark-1.4.1-bin-hadoop1.tgz
# Workaround for Travis issue with POSIX semaphores; see
# https://github.com/travis-ci/travis-cookbooks/issues/155
- "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm"
- pip install .
- wget http://d3kbcqa49mib13.cloudfront.net/spark-1.5.1-bin-hadoop1.tgz
- tar -xzf spark-1.5.1-bin-hadoop1.tgz

script:
- export SPARK_HOME=`pwd`/spark-1.4.1-bin-hadoop1
- cd test
- ./run_tests.sh
- export SPARK_HOME=`pwd`/spark-1.5.1-bin-hadoop1
- py.test

0 comments on commit b57df1a

Please sign in to comment.