-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: do not install neurodebian on CircleCI
- Loading branch information
Showing
1 changed file
with
53 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,59 @@ jobs: | |
FS_LICENSE: "/tmp/fslicense/license.txt" | ||
|
||
steps: | ||
- restore_cache: | ||
keys: | ||
- env-v3-{{ .Branch }}- | ||
- env-v3-master- | ||
- env-v3- | ||
- run: | ||
name: Setup git-annex | ||
command: | | ||
sudo apt update && sudo apt-get install apt-transport-https ca-certificates -y && sudo update-ca-certificates | ||
if [[ ! -d /opt/circleci/git-annex.linux ]]; then | ||
cd /tmp | ||
wget https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz | ||
tar xzf git-annex-standalone-amd64.tar.gz -C /opt/circleci/ | ||
fi | ||
git config --global user.name 'NiPy' | ||
git config --global user.email '[email protected]' | ||
- run: | ||
name: Setup DataLad | ||
command: | | ||
export PY3=$(pyenv versions | grep '3\.' | | ||
sed -e 's/.* 3\./3./' -e 's/ .*//') | ||
pyenv local $PY3 | ||
python -m pip install --no-cache-dir -U pip "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4" | ||
python -m pip install --no-cache-dir -U datalad datalad-osf | ||
- save_cache: | ||
key: env-v3-{{ .Branch }}-{{ .BuildNum }} | ||
paths: | ||
- /opt/circleci/git-annex.linux | ||
- /opt/circleci/.pyenv/versions/3.9.4 | ||
|
||
- restore_cache: | ||
keys: | ||
- data-v2-{{ .Branch }}- | ||
- data-v2-master- | ||
- data-v2- | ||
- run: | ||
name: Install test data from GIN | ||
command: | | ||
export PY3=$(pyenv versions | grep '3\.' | | ||
sed -e 's/.* 3\./3./' -e 's/ .*//') | ||
pyenv local $PY3 | ||
export PATH=/opt/circleci/git-annex.linux:$PATH | ||
mkdir -p /tmp/data | ||
cd /tmp/data | ||
datalad install -r https://gin.g-node.org/oesteban/nitransforms-tests.git | ||
datalad update -r --merge -d nitransforms-tests/ | ||
datalad get -r -d nitransforms-tests/ | ||
- save_cache: | ||
key: data-v2-{{ .Branch }}-{{ .BuildNum }} | ||
paths: | ||
- /tmp/data | ||
|
||
- restore_cache: | ||
keys: | ||
- build-v1-{{ .Branch }}-{{ epoch }} | ||
|
@@ -41,13 +94,6 @@ jobs: | |
docker push localhost:5000/ubuntu | ||
fi | ||
- checkout | ||
- run: | ||
name: Prepare a Python environment | ||
command: | | ||
export PY3=$(pyenv versions | grep '3\.' | | ||
sed -e 's/.* 3\./3./' -e 's/ .*//') | ||
pyenv local $PY3 | ||
python3 -m pip install "setuptools >= 45.0" "setuptools_scm[toml] >= 3.4" "pip>=10.0.1" | ||
- run: | ||
name: Build Docker image & push to registry | ||
no_output_timeout: 60m | ||
|
@@ -93,61 +139,6 @@ jobs: | |
mkdir -p /tmp/fslicense | ||
cd /tmp/fslicense | ||
echo "cHJpbnRmICJrcnp5c3p0b2YuZ29yZ29sZXdza2lAZ21haWwuY29tXG41MTcyXG4gKkN2dW12RVYzelRmZ1xuRlM1Si8yYzFhZ2c0RVxuIiA+IGxpY2Vuc2UudHh0Cg==" | base64 -d | sh | ||
- restore_cache: | ||
keys: | ||
- env-v1-{{ .Branch }}- | ||
- env-v1-master- | ||
- env-v1- | ||
- restore_cache: | ||
keys: | ||
- data-v2-{{ .Branch }}- | ||
- data-v2-master- | ||
- data-v2- | ||
- run: | ||
name: Setup git-annex | ||
command: | | ||
if [[ ! -d /usr/lib/git-annex.linux ]]; then | ||
wget -O- http://neuro.debian.net/lists/focal.us-ca.full | tee /etc/apt/sources.list.d/neurodebian.sources.list | ||
apt-key add /tmp/src/nitransforms/docker/files/neurodebian.gpg | ||
apt-key adv --recv-keys --keyserver hkps://keys.openpgp.org 0xA5D32F012649A5A9 || true | ||
apt update && apt-get install -y --no-install-recommends git-annex-standalone | ||
fi | ||
git config --global user.name 'NiPy' | ||
git config --global user.email '[email protected]' | ||
- run: | ||
name: Setup DataLad & TemplateFlow | ||
command: | | ||
export PY3=$(pyenv versions | grep '3\.' | | ||
sed -e 's/.* 3\./3./' -e 's/ .*//') | ||
pyenv local $PY3 | ||
python -m pip install --no-cache-dir -U pip | ||
python -m pip install --no-cache-dir -U datalad datalad-osf | ||
- save_cache: | ||
key: env-v1-{{ .Branch }}-{{ .BuildNum }} | ||
paths: | ||
- /usr/local/bin | ||
- /usr/local/lib/python3.7/site-packages | ||
- /usr/bin/git-annex | ||
- /usr/bin/git-annex-shell | ||
- /usr/lib/git-annex.linux | ||
|
||
- run: | ||
name: Install test data from GIN | ||
command: | | ||
export PY3=$(pyenv versions | grep '3\.' | | ||
sed -e 's/.* 3\./3./' -e 's/ .*//') | ||
pyenv local $PY3 | ||
cd /tmp/data | ||
datalad install -r https://gin.g-node.org/oesteban/nitransforms-tests | ||
datalad update -r --merge -d nitransforms-tests/ | ||
datalad get -r -d nitransforms-tests/ | ||
- save_cache: | ||
key: data-v1-{{ .Branch }}-{{ .BuildNum }} | ||
paths: | ||
- /tmp/data | ||
- run: | ||
name: Get codecov | ||
command: python -m pip install codecov | ||
|