taar/.travis.yml

56 строки
1.9 KiB
YAML

language: python
matrix:
include:
- python: "3.5"
env: REQUIREMENTS="latest"
- python: "2.7"
env: REQUIREMENTS="emr"
before_install:
# Work around https://github.com/travis-ci/travis-ci/issues/7940
- export BOTO_CONFIG=/dev/null
install:
# Update Travis
- sudo apt-get update
# Install conda
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- 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 info -a
# Setup environment
- if [[ "$REQUIREMENTS" == "latest" ]]; then
conda create -n latest python=$TRAVIS_PYTHON_VERSION;
source activate latest;
pip install -e . --process-dependency-links;
elif [[ "$REQUIREMENTS" == "emr" ]]; then
conda env create -f environment_emr.yaml;
source activate emr;
pip install -e . --process-dependency-links;
else
exit 1;
fi
- pip install -r requirements.txt
script:
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then flake8 taar tests || exit 1; fi
- py.test --cov taar tests
after_success:
- coveralls
deploy:
provider: pypi
user: mdoglio
distributions: sdist bdist_wheel
password:
secure: L2+PqFb9kNgAC1k6ElgWlny9J3yIQXHiNB6zoe4DMSeugT7KE90ggGghF9wt/OBfkPhe7BXZD7mwOnCa/eub68j3ENKIIChjlzLmiuBi2ynciAyraWineesGCMwyCwbVD4vpW0FdVDSY+ycpf2Xtow4cEfj1UoVPJ/u4Xl5GCdKLZRwLk1nRoUJWxoR/HJq+/0cc+DBvfAJMOya54OLXNMaNI0TJjwn2JD7w1NHf+phtIDhcg834KlRnEIlsLkLwyk/ANypfKroEaHAYG6A5J+oCA/ZKnl8EZwF4M70S9WQsTzYMwa02Aezp/mcAg2pfUYQNunjOYF+pnsd3SdeltgF65d66G3St05GBrn7G5Zl1hsbEkCb+0rIVGIi4oypUK2eAtgFFeR/f0NJTCijhGfa45d5lJlHFpMhTncWJTBBJ0NLOfuNVhTsEieK/FnZxHRFpuOXkgLrMe1FVl+FGs3ZMdh0Uu35SoA2odxq9/LJn8lzL8jUQJ/MgFTMoaPQSOKKS8Fxf4lWpmJfOvYupwulp3I5+86SNonI6qBY82KQ5E3vmaCWXLr4KcTRc2+U0rjOiEKt0yA6bhtkAKWRrvQl1Idefn1g9k9FfIDj0V+wuzUEMCn+QRJRYsM0LtD2T2M1GX24oyQUSzwO5ZyoPUZG6hzFXg8DylsjGY/JNzUA=
on:
tags: true
repo: mozilla/taar