diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-08 15:38:24 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-08 15:42:11 +0100 |
commit | 095388a7c83dbffbe042f842789285f63996fc11 (patch) | |
tree | d3962c73f7c210a718e26f96ec32cce8ef6cf567 /.gitlab-ci.yml | |
parent | 7bc20fe2d1225bebb2f4ec1faabf6a70e4e5a4e7 (diff) | |
download | pygobject-095388a7c83dbffbe042f842789285f63996fc11.tar.gz |
gitlab-ci: use pyenv in docker instead of the deadsnakes PPA
deadsnakes only provides packages for Ubuntu LTS versions and doesn't
include versions present in that Ubuntu version.
With Ubuntu zesty this happened to work, but now that that's EOL
we have to switch to artful and no longer have a Python 3.5 available.
Instead switch to using pyenv in docker and compiler our own Python
versions. This should make it easier to swtich distros in the future.
Also adds a run-docker.sh script which builds the image and
runs it with the git repo mounted. This should make local testing
easier in the future.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5408a38f..4461e856 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,28 @@ services: - docker -image: lazka/pygobject:latest +image: lazka/pygobject:pyenv .defaults: &defaults - variables: - PYTHON: "$CI_JOB_NAME" script: - bash -x ./.gitlab-ci/test-docker.sh python2.7: + variables: + PYENV_VERSION: "2.7.14" <<: *defaults python3.4: + variables: + PYENV_VERSION: "3.4.7" <<: *defaults python3.5: + variables: + PYENV_VERSION: "3.5.5" <<: *defaults python3.6: + variables: + PYENV_VERSION: "3.6.4" <<: *defaults |