Skip to content

Commit

Permalink
add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
wkerzendorf committed Aug 23, 2018
1 parent 75d45ae commit fd1fe52
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ virtualenv:

cache:
apt: true
directories:
- $HOME/miniconda
addons:
apt:
packages:
- clang
- gdb

sudo: true

Expand Down Expand Up @@ -52,24 +59,9 @@ matrix:
- python: 2.7
env: SETUP_CMD='test'

addons:
apt:
packages:
- clang
- gdb




before_install:
# We do this to make sure we get the dependencies so pip works below
- export PYTHONIOENCODING=UTF8
- wget $MINICONDA_URL -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- hash -r
- conda update --yes conda
- source ci-helpers/install_miniconda.sh
- if [[ $TEST_MODE == 'spectrum' ]]; then conda install -c conda-forge git-lfs=2.2.1 -y; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git lfs install --skip-smudge; fi
- if [[ $TEST_MODE == 'spectrum' ]]; then git clone $TARDIS_REF_DATA_URL $HOME/tardis-refdata; fi
Expand Down
11 changes: 11 additions & 0 deletions ci-helpers/install_miniconda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export PYTHONIOENCODING=UTF8
if test -e $HOME/miniconda/bin; then
echo "miniconda already installed.";
else
wget $MINICONDA_URL -O miniconda.sh
chmod +x miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH=$HOME/miniconda/bin:$PATH
hash -r
conda update --yes conda
fi

0 comments on commit fd1fe52

Please sign in to comment.