Skip to content

Commit

Permalink
Create script for shared CI install steps
Browse files Browse the repository at this point in the history
Intentionally keep conda activate outside script per
conda/conda#7980
  • Loading branch information
agitter committed Aug 3, 2019
1 parent b5242e9 commit 70c86f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
11 changes: 1 addition & 10 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ services:
- docker

install:
- wget https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh
--output-document miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source $HOME/miniconda/etc/profile.d/conda.sh
- hash -r
- conda config
--set always_yes yes
--set changeps1 no
- conda env create --quiet --file build/environment.yml
- conda list --name manubot
- bash ci/install.sh
- conda activate manubot

test_script:
Expand Down
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@ services:
branches:
only:
- master
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh
--output-document miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source $HOME/miniconda/etc/profile.d/conda.sh
- hash -r
- conda config
--set always_yes yes
--set changeps1 no
install:
- conda env create --quiet --file build/environment.yml
- conda list --name manubot
- bash ci/install.sh
- conda activate manubot
script:
- bash build/build.sh
Expand Down
19 changes: 19 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

## install.sh: run during a Travis CI or AppVeyor build to install the conda environment.

# Set options for extra caution & debugging
set -o errexit \
-o nounset \
-o pipefail

wget https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh
--output-document miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
source $HOME/miniconda/etc/profile.d/conda.sh
hash -r
conda config
--set always_yes yes
--set changeps1 no
conda env create --quiet --file build/environment.yml
conda list --name manubot

0 comments on commit 70c86f2

Please sign in to comment.