# HG changeset patch # User Thierry Florac # Date 1560352609 -7200 # Node ID 8275b080c7ad23a0d70aead3d4e9537b82a62e30 # Parent b6e8b2791deccdeea35b3dcb27304f3e8e3a8371 Testing Gitlab-CI stages... diff -r b6e8b2791dec -r 8275b080c7ad .gitlab-ci.yml --- a/.gitlab-ci.yml Wed Jun 12 17:01:24 2019 +0200 +++ b/.gitlab-ci.yml Wed Jun 12 17:16:49 2019 +0200 @@ -5,24 +5,36 @@ paths: - /var/local/env/pyams/eggs/* +stages: + - build + - test + - quality + +before_script: + - export http_proxy=http://172.17.0.1:3128/ + - export https_proxy=http://172.17.0.1:3128/ + - python3.5 bootstrap.py --buildout-version=2.12.0 + +build: + stage: build + script: + - ./bin/buildout + test: stage: test - before_script: - - export http_proxy=http://172.17.0.1:3128/ - - export https_proxy=http://172.17.0.1:3128/ - - python3.5 bootstrap.py --buildout-version=2.12.0 - - ./bin/buildout script: - ./bin/test quality: - stage: test + stage: quality image: docker:stable variables: DOCKER_DRIVER: overlay2 allow_failure: true services: - docker:stable-dind + before_script: + - grep "version =" setup.py script: - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - docker run