-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Travis Caching and separate scripts for CI (#866)
* add caching * remove cached miniconda * swap coveralls for codecov * adding new ci helper * caching tardis env * add refdata to caching * fetch reference data * ref data avail * remove the fetch reference data caching - to be done in next PR * update ref_data_home * update comments from unoebauer * update refdata path * add single quotes * remove git lfs from separate install * update clone refdata * remove space after equal * update travis yaml
- Loading branch information
1 parent
8c367dc
commit 0e8dafb
Showing
5 changed files
with
80 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
git lfs install | ||
if test -e $REF_DATA_HOME; then | ||
echo "Ref data available" | ||
else | ||
git clone https://github.com/tardis-sn/tardis-refdata.git $REF_DATA_HOME | ||
cd $REF_DATA_HOME | ||
# Use the following to get the ref-data from the master; | ||
git fetch origin | ||
git checkout origin/master | ||
# Use the following to get the ref-data from a specific pull request | ||
#git fetch origin pull/11/head:thomson-ref | ||
git lfs pull --include="atom_data/kurucz_cd23_chianti_H_He.h5" origin/master | ||
git lfs pull --include="atom_data/chianti_He.h5" origin/master | ||
git lfs pull --include="plasma_reference/" origin/master | ||
git lfs pull --include="unit_test_data.h5" origin/master | ||
cd $TRAVIS_BUILD_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
export PYTHONIOENCODING=UTF8 | ||
if test -e $HOME/miniconda/bin; then | ||
echo "miniconda already installed."; | ||
export PATH=$HOME/miniconda/bin:$PATH | ||
hash -r | ||
#conda update --yes conda | ||
|
||
else | ||
wget $MINICONDA_URL -O miniconda.sh | ||
chmod +x miniconda.sh | ||
rm -r $HOME/miniconda | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
|
||
export PATH=$HOME/miniconda/bin:$PATH | ||
hash -r | ||
conda update --yes conda | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
cd $TRAVIS_BUILD_DIR | ||
if test -e $HOME/miniconda/envs/tardis; then | ||
echo "TARDIS env already installed."; | ||
# Also check for tardis_env27.yml change | ||
else | ||
conda env create -f tardis_env27.yml | ||
#trouble with building due to segfault at cython (https://github.com/cython/cython/issues/2199) | ||
#remove if we can get normal cython through conda | ||
git clone https://github.com/cython/cython | ||
cd cython | ||
git checkout c485b1b77264c3c75d090a3c526de24966830d42 | ||
CFLAGS="$CFLAGS -D CYTHON_CLINE_IN_TRACEBACK=0" python setup.py install | ||
cd .. | ||
fi | ||
|
||
source activate tardis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters