Skip to content

Commit

Permalink
Install twine, add option for skipping tests
Browse files Browse the repository at this point in the history
--skip-ci-tests
  • Loading branch information
avirshup committed Dec 4, 2017
1 parent 43baaf3 commit e30a975
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployment/build-env.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions deployment/run-ci-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e30a975

Please sign in to comment.