From 68fe8f41163fbd101e8323cc5591d378cd0d5c6b Mon Sep 17 00:00:00 2001 From: Bruce Flynn <brucef@ssec.wisc.edu> Date: Thu, 3 Jan 2019 13:45:35 -0600 Subject: [PATCH] CI --- .gitlab-ci.yml | 19 +++++++++++++++++++ tests/run_ci.sh | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100755 tests/run_ci.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..84fb63b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +test-py2: + stage: test + script: + - ./tests/run_ci.sh 2 + + +test-py3: + stage: test + script: + - ./tests/run_ci.sh 3 + +sdist: + stage: deploy + only: + - /^\d+\.\d+\.\d+$/ + script: + - rm -f dist/* + - python setup.py sdist + - twine upload -r sips dist/*.tar.gz diff --git a/tests/run_ci.sh b/tests/run_ci.sh new file mode 100755 index 0000000..a9a4dad --- /dev/null +++ b/tests/run_ci.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +ver=${1:-3} +docker run --rm -v $PWD:/code -w /code python:${ver} /code/tests/run.sh -- GitLab