Skip to content

Commit

Permalink
chore: Fix missing python3 binary on CircleCI build job step
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Mar 27, 2020
1 parent d2bf44a commit 67dfdf1
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ jobs:
- run:
name: Check version packaged in Docker image
command: |
THISVERSION=$(python3 setup.py --version)
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
pyenv local 3.7.0
python3 -m pip install "setuptools ~= 42.0" "setuptools_scm[toml] >= 3.4" "pip>=10.0.1"
THISVERSION=${CIRCLE_TAG:-$(python3 setup.py --version)}
INSTALLED_VERSION=$(\
docker run -it --rm --entrypoint=python nitransforms \
-c 'import nitransforms as nit; print(nit.__version__)')
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
echo "VERSION: \"$THISVERSION\""
echo "INSTALLED: \"$INSTALLED_VERSION\""
test "$INSTALLED_VERSION" = "$THISVERSION"
-c 'import nitransforms as nit; print(nit.__version__, end="")' )
echo "VERSION: \"${THISVERSION}\""
echo "INSTALLED: \"${INSTALLED_VERSION}\""
test "${INSTALLED_VERSION}" = "${THISVERSION}"
- run:
name: Store FreeSurfer license file
Expand Down Expand Up @@ -180,11 +180,10 @@ jobs:
THISVERSION=$( python setup.py --version )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
pip install dist/nitransforms*.tar.gz
INSTALLED_VERSION=$(python -c 'import nitransforms as nit; print(nit.__version__)')
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
echo "VERSION: \"$THISVERSION\""
echo "INSTALLED: \"$INSTALLED_VERSION\""
test "$INSTALLED_VERSION" = "$THISVERSION"
INSTALLED_VERSION=$(python -c 'import nitransforms as nit; print(nit.__version__, end="")')
echo "VERSION: \"${THISVERSION}\""
echo "INSTALLED: \"${INSTALLED_VERSION}\""
test "${INSTALLED_VERSION}" = "${THISVERSION}"
- run:
name: Prepare wheel install environment
command: |
Expand All @@ -198,11 +197,10 @@ jobs:
THISVERSION=$( python setup.py --version )
THISVERSION=${CIRCLE_TAG:-$THISVERSION}
pip install dist/nitransforms*.whl
INSTALLED_VERSION=$(python -c 'import nitransforms as nit; print(nit.__version__)')
INSTALLED_VERSION=${INSTALLED_VERSION%$'\r'}
echo "VERSION: \"$THISVERSION\""
echo "INSTALLED: \"$INSTALLED_VERSION\""
test "$INSTALLED_VERSION" = "$THISVERSION"
INSTALLED_VERSION=$(python -c 'import nitransforms as nit; print(nit.__version__, end="")')
echo "VERSION: \"${THISVERSION}\""
echo "INSTALLED: \"${INSTALLED_VERSION}\""
test "${INSTALLED_VERSION}" = "${THISVERSION}"
deploy_pypi:
docker:
Expand Down

0 comments on commit 67dfdf1

Please sign in to comment.