Skip to content

Commit

Permalink
Merge pull request #110 from brittonsmith/cifix
Browse files Browse the repository at this point in the history
Two circleci improvements
  • Loading branch information
brittonsmith committed Jan 15, 2020
2 parents d9f522c + f65af77 commit 83f626b
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commands:
parameters:
yttag:
type: string
default: YT_HEAD
default: YT_GOLD
steps:
- run: |
# add git user info so we can commit
Expand All @@ -42,31 +42,15 @@ commands:
git clone --branch=yt-4.0 https://github.com/yt-project/yt $YT_DIR
fi
pushd $YT_DIR
git pull origin yt-4.0
# return to yt tip before pulling
git checkout ${YT_HEAD}
git pull origin ${YT_HEAD}
# checkout changeset we're actually testing
git checkout ${<< parameters.yttag >>}
pip install -e .
popd
pip install -e .[dev]
install-yt:
description: "Install yt."
parameters:
yttag:
type: string
default: YT_GOLD
steps:
- run: |
source $BASH_ENV
source $HOME/venv/bin/activate
if [ ! -f $YT_DIR/README.md ]; then
git clone --branch=yt-4.0 https://github.com/yt-project/yt $YT_DIR
fi
pushd $YT_DIR
git pull origin yt-4.0
git checkout ${<< parameters.yttag >>}
pip install -e .
popd
install-trident:
description: "Install trident."
parameters:
Expand Down Expand Up @@ -207,9 +191,6 @@ jobs:
- ~/.trident
- ~/answer_test_data

- install-yt:
yttag: << parameters.yttag >>

- install-trident:
tridenttag: "TRIDENT_GOLD"

Expand Down

0 comments on commit 83f626b

Please sign in to comment.