From 188eaa8a9359200c90845a5daa0b6bcff08a0724 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 31 Aug 2020 19:32:45 +0100 Subject: [PATCH] Add gitlab config --- bin/run_example_ci_configs.py | 8 ++++++-- examples/gitlab-minimal.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 examples/gitlab-minimal.yml diff --git a/bin/run_example_ci_configs.py b/bin/run_example_ci_configs.py index e2173dfd..91647098 100755 --- a/bin/run_example_ci_configs.py +++ b/bin/run_example_ci_configs.py @@ -62,8 +62,12 @@ services = [ dst_config_path='.travis.yml', badge_md='[![Build Status](https://travis-ci.org/joerick/cibuildwheel.svg?branch={branch})](https://travis-ci.org/joerick/cibuildwheel)', ), - # CIService( - # name='gitlab', src_config_path='gitlab-minimal.yml', dst_config_path='.gitlab-ci.yml'), + CIService( + name='gitlab', + src_config_path='gitlab-minimal.yml', + dst_config_path='.gitlab-ci.yml', + badge_md='[![Gitlab](https://gitlab.com/joerick/cibuildwheel/badges/{branch}/pipeline.svg)](https://gitlab.com/joerick/cibuildwheel/-/commits/{branch})' + ), ] diff --git a/examples/gitlab-minimal.yml b/examples/gitlab-minimal.yml new file mode 100644 index 00000000..f6b1f856 --- /dev/null +++ b/examples/gitlab-minimal.yml @@ -0,0 +1,32 @@ +linux: + image: python:3.8 + # make a docker daemon available for cibuildwheel to use + services: + - name: docker:dind + entrypoint: ["env", "-u", "DOCKER_HOST"] + command: ["dockerd-entrypoint.sh"] + variables: + DOCKER_HOST: tcp://docker:2375/ + DOCKER_DRIVER: overlay2 + # See https://github.com/docker-library/docker/pull/166 + DOCKER_TLS_CERTDIR: "" + script: + - curl -sSL https://get.docker.com/ | sh + - python -m pip install cibuildwheel + - cibuildwheel --output-dir wheelhouse + artifacts: + paths: + - wheelhouse/ + +windows: + tags: + - shared-windows + - windows + - windows-1809 + script: + - choco install python --version 3.8.5 + - export PATH="/c/Python38:/c/Python38/Scripts:$PATH" + - cibuildwheel --output-dir wheelhouse + artifacts: + paths: + - wheelhouse/