-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from simelo/stdevHan_t152_deploy_arm
Fixes #152 Deploy to Circle CI
- Loading branch information
Showing
9 changed files
with
128 additions
and
276 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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
"${PYBIN}/pip" install -r /io/requirements.dev.txt | ||
"${PYBIN}/pip" wheel /io/ -w wheelhouse/ | ||
"${PYBIN}/pip" install -r /io/requirements.txt | ||
"${PYBIN}/pip" install -r /io/lib/skyapi/requirements.txt | ||
"${PYBIN}/pip" wheel /io/ -w /io/wheelhouse/ | ||
"${PYBIN}/pip" wheel /io/lib/skyapi/ -w /io/wheelhouse/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in wheelhouse/*.whl; do | ||
for whl in /io/wheelhouse/*.whl; do | ||
auditwheel repair "$whl" -w /io/wheelhouse/ | ||
done | ||
done | ||
|
||
rm -rfv /io/wheelhouse/*linux_i686.whl | ||
rm -rfv /io/wheelhouse/*linux_x86_64.whl |
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 |
---|---|---|
@@ -1,15 +1,8 @@ | ||
# Compile wheels | ||
pip wheel /io/ -w /io/wheelhouse/ | ||
pip wheel /io/lib/skyapi/ -w /io/wheelhouse/ | ||
# python3.4 -m pip wheel /io/ -w wheelhouse/ | ||
pip3 wheel /io/lib/skyapi/ -w /io/wheelhouse/ | ||
pip3 wheel /io/ -w /io/wheelhouse/ | ||
# python3.6 -m pip wheel /io/ -w wheelhouse/ | ||
# python3.7 -m pip wheel /io/ -w wheelhouse/ | ||
|
||
# # Bundle external shared libraries into the wheels | ||
# for whl in wheelhouse/*.whl; do | ||
# python -m auditwheel repair "$whl" -w /io/wheelhouse/ | ||
# # python3.4 -m auditwheel repair "$whl" -w /io/wheelhouse/ | ||
# python3 -m auditwheel repair "$whl" -w /io/wheelhouse/ | ||
# # python3.6 -m auditwheel repair "$whl" -w /io/wheelhouse/ | ||
# # python3.7 -m auditwheel repair "$whl" -w /io/wheelhouse/ | ||
# done | ||
# python3.7 -m pip wheel /io/ -w wheelhouse/ |
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
git --version | ||
|
||
export VERSION="$(git describe --tags --exact-match HEAD)" | ||
|
||
if [[ "$VERSION" ]]; then | ||
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=386 --build-arg ARCH=i686 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/skycoin/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/skycoin/pyskycoin -t skydev-deploy | ||
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=amd64 --build-arg ARCH=x86_64 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/skycoin/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/skycoin/pyskycoin -t skydev-deploy | ||
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=armv7hf --file $GOPATH/src/github.com/skycoin/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/skycoin/pyskycoin -t skydev-test | ||
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=aarch64 --file $GOPATH/src/github.com/skycoin/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/skycoin/pyskycoin -t skydev-test | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
if [[ "$URL_DEPLOY" ]]; then | ||
|
||
$TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing --repository-url ${URL_DEPLOY} /io/dist/* | ||
|
||
else | ||
|
||
$TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing /io/dist/* | ||
go get github.com/tcnksm/ghr | ||
ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} ${VERSION} /io/dist/ | ||
|
||
fi |
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
Oops, something went wrong.