diff --git a/.travis.yml b/.travis.yml index 1b3ca98..942e98a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,23 +25,28 @@ matrix: env: TEST_TARGET=docs PY=3.7 before_install: - - wget http://bit.ly/miniconda -O miniconda.sh - - bash miniconda.sh -b -p $HOME/miniconda - - export PATH="$HOME/miniconda/bin:$PATH" - - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true - - conda update conda - - conda config --remove channels defaults --force - - conda config --add channels conda-forge --force - - conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt - - source activate TEST - # firefox headless driver - - wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz -O geckodriver.tar.gz - - mkdir geckodriver - - tar -xzf geckodriver.tar.gz -C geckodriver - - export PATH=$PATH:$PWD/geckodriver + # Install miniconda and create TEST env. + - | + wget http://bit.ly/miniconda -O miniconda.sh + bash miniconda.sh -b -p $HOME/miniconda + export PATH="$HOME/miniconda/bin:$PATH" + conda config --set always_yes yes --set changeps1 no --set show_channel_urls true + conda update conda --quiet + conda config --add channels conda-forge --force + conda install pycryptosat + conda config --set channel_priority strict + conda config --set safety_checks disabled + conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt + source activate TEST + # Install firefox headless driver. + - | + wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz -O geckodriver.tar.gz + mkdir geckodriver + tar -xzf geckodriver.tar.gz -C geckodriver + export PATH=$PATH:$PWD/geckodriver install: - - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install branca-${version}.tar.gz && popd + - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install --no-deps --force-reinstall branca-${version}.tar.gz && popd script: - if [[ $TEST_TARGET == 'default' ]]; then