Skip to content

Commit

Permalink
BUG: update CircleCI configuration with selections from master
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Nov 5, 2019
1 parent 90e6da1 commit 08dc011
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
referenced:
generate-hash-step: &generate-hash-step
run:
name: Generate external data hash
command: |
cd ITK
find . -name \*.md5 -o -name \*.sha512 -print0 | xargs -0 git log -n 1 | tee /home/circleci/external-data.hashable
restore-data-step: &restore-data-step
restore_cache:
keys:
- 'v1-external-data-{{ checksum "/home/circleci/external-data.hashable" }}'
- 'v1-external-data'

version: 2
jobs:
build:
docker:
- image: circleci/python:2.7
- image: circleci/python:2.7.16-stretch
working_directory: ~/
resource_class: large
resource_class: medium
branches:
ignore:
- gh-pages
Expand All @@ -19,9 +32,8 @@ jobs:
steps:
- checkout:
path : ~/ITK
- restore_cache:
keys:
- external-data
- *generate-hash-step
- *restore-data-step
- restore_cache:
keys:
- ccache-{{ arch }}-{{ .Branch }}
Expand Down Expand Up @@ -75,5 +87,5 @@ jobs:
key: 'ccache-{{ arch }}-{{ .Branch }}-{{ epoch }}'
paths: [ "/home/circleci/.ccache" ]
- save_cache:
key: 'external-data'
key: 'v1-external-data-{{ checksum "/home/circleci/external-data.hashable" }}'
paths: [ "/home/circleci/.ExternalData" ]

0 comments on commit 08dc011

Please sign in to comment.