Skip to content

Commit

Permalink
Merge pull request #796 from vgteam/kubernetize
Browse files Browse the repository at this point in the history
Set up CI to run on Kubernetes-based runners
  • Loading branch information
adamnovak authored Feb 28, 2020
2 parents d097d91 + eed03af commit 3afb6af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
image: quay.io/vgteam/dind

before_script:
- whoami
- sudo apt-get -q -y update
# Make sure we have some curl stuff for pycurl which we need for some Python stuff
- sudo apt-get -q -y install docker.io python3-pip python-virtualenv libcurl4-gnutls-dev libgnutls28-dev python3-dev
- startdocker || true
- docker info
# Build .pypirc with PyPI credentials
- touch ~/.pypirc
- chmod 600 ~/.pypirc
- 'printf "[distutils]\nindex-servers =\n pypi\n\n[pypi]\nusername: ${PYPI_USERNAME}\npassword: ${PYPI_PASSWORD}\n" > ~/.pypirc'


after_script:
- stopdocker || true

stages:
- test

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pypi: check_venv check_clean_working_copy check_running_on_ci
from version import version as v;\
from pkg_resources import parse_version as pv;\
import os;\
print "--tag-build=.dev" + os.getenv("CI_PIPELINE_IID") if pv(v).is_prerelease else ""'` \
print("--tag-build=.dev" + os.getenv("CI_PIPELINE_IID") if pv(v).is_prerelease else "")'` \
&& $(python) setup.py egg_info $$tag_build sdist bdist_egg upload )
clean_pypi:
- rm -rf build/
Expand Down

0 comments on commit 3afb6af

Please sign in to comment.