From e30a97508499c16584a4e20a1b29d8530c4bf2a7 Mon Sep 17 00:00:00 2001 From: Aaron Virshup Date: Mon, 4 Dec 2017 10:51:14 -0800 Subject: [PATCH] Install twine, add option for skipping tests --skip-ci-tests --- deployment/build-env.dockerfile | 3 ++- deployment/run-ci-tests.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deployment/build-env.dockerfile b/deployment/build-env.dockerfile index 467efb0..9252040 100644 --- a/deployment/build-env.dockerfile +++ b/deployment/build-env.dockerfile @@ -11,6 +11,7 @@ RUN curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz && rm -r docker docker-17.04.0-ce.tgz ADD ./DockerMakefiles/requirements.txt /tmp/reqs.txt -RUN pip install -r /tmp/reqs.txt && pip install coveralls +RUN pip install -r /tmp/reqs.txt \ + && pip install coveralls twine ADD . /opt/molecular-design-toolkit diff --git a/deployment/run-ci-tests.sh b/deployment/run-ci-tests.sh index aa7a01e..f0e8668 100755 --- a/deployment/run-ci-tests.sh +++ b/deployment/run-ci-tests.sh @@ -32,6 +32,11 @@ function send_status_update(){ function check_if_tests_should_run(){ echo "Should I run the tests in this environment?" + if [[ "${CI_COMMIT_MESSAGE}" == *"--skip-ci-tests"* ]]; then + echo "NO: found \"--skip-ci-tests\" flag in commit message; will not run any test suites" + exit 0 + fi + if [[ "${CI_COMMIT_MESSAGE}" == *"--fast-ci-tests"* && "${VERSION}" != "complete.py3" ]]; then echo "NO: found \"--fast-ci-tests\" flag in commit message; run complete.py3 only" exit 0