From 841644b03b47301a3dd95a3d6b5ab91b1c18b239 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Mon, 8 Feb 2016 18:32:11 -0700 Subject: [PATCH] Initial attempt at travis-ci configuration --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..de9c5216 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: python +python: + - 2.7 +before_install: + ## courtesy of http://conda.pydata.org/docs/travis.html + - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then + wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-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 $HOME/miniconda + - export PATH="$HOME/miniconda/bin:$PATH" + - hash -r + - conda config --set always_yes yes --set changeps1 no + - conda update --yes conda + - conda info -a + ## back to other dependencies + - nvm install stable + - nvm use stable + - npm install -g grunt-cli + - npm --version + - node --version +install: + - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy nose flake8 + - source activate test-environment + - pip install obspy + - npm install +script: grunt test -- GitLab