-
Notifications
You must be signed in to change notification settings - Fork 37
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 #162 from Autodesk/deploy
Continuous deployment
- Loading branch information
Showing
13 changed files
with
59 additions
and
46 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
DockerMake >= 0.5.3 | ||
DockerMake >= 0.5.6 |
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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,3 +1,6 @@ | ||
FROM moldesign_complete:dev | ||
ADD requirements.txt provision_testrunner_image.sh /tmp/ | ||
RUN cd /tmp && ./provision_testrunner_image.sh | ||
RUN pip install twine | ||
WORKDIR /opt/molecular-design-toolkit | ||
RUN pip install -r DockerMakefiles/requirements.txt |
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,25 @@ | ||
#!/bin/bash | ||
|
||
# Publish a new release (triggered by a git tag that conforms to a PEP440 release) | ||
# Exit 1 if there's a mismatch between the git tag and the package's version | ||
# Expects to run in base directory | ||
|
||
# fail immediately if any command fails: | ||
set -e | ||
|
||
pyversion=$(python -m moldesign version | tail -n 1) | ||
|
||
if [ "${pyversion}" == "${CI_BRANCH}" ]; then | ||
echo "Deploying version ${CI_BRANCH}" | ||
else | ||
echo "Can't publish - moldesign package version '${pyversion}' differs from its Git tag '${CI_BRANCH}'" | ||
exit 1 | ||
fi | ||
|
||
docker-make -f DockerMakefiles/DockerMake.yml \ | ||
--repo docker.io/autodesk/moldesign: \ | ||
--tag ${pyversion} \ | ||
--all \ | ||
--push --user ${DOCKERHUB_USER} --token ${DOCKERHUB_PASSWORD} | ||
|
||
twine upload -u ${PYPI_USER} -p ${PYPI_PASSWORD} dist/moldesign-${pyversion}.tar.gz |
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ PyGithub | |
pytest-cov | ||
pytest-xdist != 1.17.0 | ||
pytest-timeout | ||
twine |
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 +1 @@ | ||
JbDr9gK2wjC1kxhF/omEUkq2sLSIML6yZ0bzhKs//sDOOrApuFkyCzLm2p2EFPnVDK8kcuJ6353Cc9+gDLO92JaOrct2Tw+Q9O9UxOj+FUKuVRTEz9pjBJMbyl+W7WhOeKEfH+3SeBBPmLXCn5YZCxr1yw9hqKX9kIKh/QLY69MWMPy2O1Xar7M2BkaYW8f7BmxA5a4OipZVYk6zaOqlAFA1Yy9CseNl3GWTe1DBIboWY08cGw== | ||
on37G8kkndvo2yloV66PWzQ/0bbTTKmj7SyjwcYHKbJKDi9jilWpcx8pXbtr1DLKeR0tweY7EXErHFpra0R3VUEm0qbPH3kpOFDZLiGAJKotYPhrRjthsId6yQH8lXot9PIiN128Eu1MUQmLnwk3+J8RZ3++3ILZinK2Jw3Ts8sbmn/OGIz6eGad9PTnV4/BdilF+VvOrr+l9fKvpM4XpTJDYh6SFsPr2S0mtTsU78cZUwDI3PpPP+SjpL9aVb/2zCK1jDpG7Q8Mlvun0zqlV0CcECJorX0vcbDcnKuF+krxw8fmJShCrDtf6ME/DZrK0Q== |
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