Skip to content

Commit c8b0ef6

Browse files
committed
make conda faster
1 parent 38cafd3 commit c8b0ef6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ before_install:
3535
- wget http://bit.ly/miniconda -O miniconda.sh
3636
- bash miniconda.sh -b -p $HOME/miniconda
3737
- export PATH="$HOME/miniconda/bin:$PATH"
38-
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
39-
- conda update conda
40-
- conda config --remove channels defaults --force
38+
- conda update conda --yes
39+
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true --set channel_priority strict
4140
- conda config --add channels conda-forge --force
41+
- conda install pycryptosat
42+
- conda config --set safety_checks disabled
4243
- conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
4344
- source activate TEST
4445
# firefox headless driver
@@ -47,9 +48,6 @@ before_install:
4748
- tar -xzf geckodriver.tar.gz -C geckodriver
4849
- export PATH=$PATH:$PWD/geckodriver
4950

50-
- if [[ "$PY" == "2.7" ]]; then
51-
conda install mock ;
52-
fi
5351

5452
# Test source distribution.
5553
install:
@@ -65,6 +63,7 @@ script:
6563
fi
6664

6765
- if [[ $TRAVIS_JOB_NAME == 'legacy-python' ]]; then
66+
conda install mock ;
6867
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
6968
fi
7069

@@ -98,7 +97,7 @@ script:
9897
pushd docs ;
9998
make clean html linkcheck ;
10099
popd ;
101-
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR
100+
python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR ;
102101
fi
103102

104103
doctr:

0 commit comments

Comments
 (0)