diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-04 13:23:17 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-05 16:52:35 +0000 |
commit | 1ff23a5d290de418655e7e67e522eacbda317115 (patch) | |
tree | 2655940d5153486c485402db2c53d51ad67ad364 /.gitlab-ci.yml | |
parent | 5156a1d5dca41f9e5197809e42569d527449ecbb (diff) | |
download | gobject-introspection-1ff23a5d290de418655e7e67e522eacbda317115.tar.gz |
Drop Python 2 support, require Python 3.4+
glib did the same thing this cycle, see
https://gitlab.gnome.org/GNOME/glib/merge_requests/196
for details
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29ddc343..105903e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - build -image: registry.gitlab.gnome.org/gnome/gobject-introspection:v1 +image: registry.gitlab.gnome.org/gnome/gobject-introspection:v2 cache: paths: @@ -28,46 +28,6 @@ fedora-x86_64-meson-python3: paths: - "${CI_PROJECT_DIR}/_build/meson-logs" -fedora-x86_64-meson-python2: - stage: build - variables: - CCACHE_BASEDIR: "${CI_PROJECT_DIR}" - CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache" - script: - - meson --prefix /usr --libdir /usr/lib64 --buildtype debug -Dcairo=true -Dpython=python2 _build . - - cd _build - - ninja - - meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib - - cd .. - - python2 -m pip install --user flake8 - - python2 -m flake8 --count - except: - - tags - artifacts: - when: on_failure - name: "gi-_${CI_COMMIT_REF_NAME}" - paths: - - "${CI_PROJECT_DIR}/_build/meson-logs" - -fedora-x86_64-autotools-python2: - stage: build - variables: - CCACHE_BASEDIR: "${CI_PROJECT_DIR}" - CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache" - CFLAGS: "-Werror" - script: - - sed -i 's|\[glib-2\.0 >= [0-9.]*\]|[glib-2.0 >= 1.0]|' configure.ac - - ./autogen.sh --with-python=python2 --enable-gtk-doc --enable-doctool - - make -j4 - - make check - - python2 -m pip install --user flake8 - - make check.quality - artifacts: - when: on_failure - name: "gi-_${CI_COMMIT_REF_NAME}" - paths: - - "${CI_PROJECT_DIR}/_build/meson-logs" - fedora-x86_64-autotools-python3: stage: build variables: |