move install and script to testing stages
parent
5a2e2a2a0a
commit
c6cfef100f
32
.travis.yml
32
.travis.yml
|
@ -26,11 +26,21 @@ jobs:
|
||||||
- source "$HOME/miniconda/etc/profile.d/conda.sh"
|
- source "$HOME/miniconda/etc/profile.d/conda.sh"
|
||||||
- hash -r
|
- hash -r
|
||||||
- conda config --set always_yes yes --set changeps1 no
|
- conda config --set always_yes yes --set changeps1 no
|
||||||
|
install:
|
||||||
|
- conda init bash
|
||||||
|
- conda update -q --all --yes conda
|
||||||
|
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
|
||||||
|
- conda activate test-environment
|
||||||
|
- snakemake -j1 renv_install
|
||||||
|
- R -e 'renv::settings$use.cache(FALSE)'
|
||||||
|
- snakemake -j1 renv_restore
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- /home/travis/.linuxbrew
|
- /home/travis/.linuxbrew
|
||||||
- $HOME/.local/share/renv
|
- $HOME/.local/share/renv
|
||||||
- $TRAVIS_BUILD_DIR/renv/library
|
- $TRAVIS_BUILD_DIR/renv/library
|
||||||
|
script:
|
||||||
|
- bash tests/scripts/run_tests.sh
|
||||||
|
|
||||||
- name: "Python 3.7 on macOS"
|
- name: "Python 3.7 on macOS"
|
||||||
os: osx
|
os: osx
|
||||||
|
@ -45,7 +55,14 @@ jobs:
|
||||||
- HOMEBREW_NO_AUTO_UPDATE=1 brew cask install miniconda
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew cask install miniconda
|
||||||
- eval "$(/opt/miniconda3/condabin/conda shell.bash hook)"
|
- eval "$(/opt/miniconda3/condabin/conda shell.bash hook)"
|
||||||
- eval "$(conda shell.bash hook)" # properly initialise non-interactive shell with gcc and no update brew
|
- eval "$(conda shell.bash hook)" # properly initialise non-interactive shell with gcc and no update brew
|
||||||
|
install:
|
||||||
|
- conda init bash
|
||||||
|
- conda update -q --all --yes conda
|
||||||
|
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
|
||||||
|
- conda activate test-environment
|
||||||
|
- snakemake -j1 renv_install
|
||||||
|
- R -e 'renv::settings$use.cache(FALSE)'
|
||||||
|
- snakemake -j1 renv_restore
|
||||||
env:
|
env:
|
||||||
- RENV_PATHS_ROOT="$HOME/renv/cache"
|
- RENV_PATHS_ROOT="$HOME/renv/cache"
|
||||||
cache:
|
cache:
|
||||||
|
@ -53,6 +70,8 @@ jobs:
|
||||||
- /usr/local/lib/R
|
- /usr/local/lib/R
|
||||||
- $RENV_PATHS_ROOT
|
- $RENV_PATHS_ROOT
|
||||||
- $TRAVIS_BUILD_DIR/renv/library
|
- $TRAVIS_BUILD_DIR/renv/library
|
||||||
|
script:
|
||||||
|
- bash tests/scripts/run_tests.sh
|
||||||
|
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
name: "Python 3.7 on Xenial Linux Docker"
|
name: "Python 3.7 on Xenial Linux Docker"
|
||||||
|
@ -64,17 +83,6 @@ jobs:
|
||||||
- docker tag rapids agamk/rapids:travislatest
|
- docker tag rapids agamk/rapids:travislatest
|
||||||
- docker push agamk/rapids:travislatest
|
- docker push agamk/rapids:travislatest
|
||||||
|
|
||||||
install:
|
|
||||||
- conda init bash
|
|
||||||
- conda update -q --all --yes conda
|
|
||||||
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
|
|
||||||
- conda activate test-environment
|
|
||||||
- snakemake -j1 renv_install
|
|
||||||
- R -e 'renv::settings$use.cache(FALSE)'
|
|
||||||
- snakemake -j1 renv_restore
|
|
||||||
|
|
||||||
script:
|
|
||||||
- bash tests/scripts/run_tests.sh
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Reference in New Issue