.gitlab-ci.yml
changeset 357 8275b080c7ad
parent 356 b6e8b2791dec
child 358 d33de925e83d
equal deleted inserted replaced
356:b6e8b2791dec 357:8275b080c7ad
     3 cache:
     3 cache:
     4     key: PYRAMID_CACHE
     4     key: PYRAMID_CACHE
     5     paths:
     5     paths:
     6         - /var/local/env/pyams/eggs/*
     6         - /var/local/env/pyams/eggs/*
     7 
     7 
       
     8 stages:
       
     9     - build
       
    10     - test
       
    11     - quality
       
    12 
       
    13 before_script:
       
    14     - export http_proxy=http://172.17.0.1:3128/
       
    15     - export https_proxy=http://172.17.0.1:3128/
       
    16     - python3.5 bootstrap.py --buildout-version=2.12.0
       
    17 
       
    18 build:
       
    19     stage: build
       
    20     script:
       
    21         - ./bin/buildout
       
    22 
     8 test:
    23 test:
     9     stage: test
    24     stage: test
    10     before_script:
       
    11         - export http_proxy=http://172.17.0.1:3128/
       
    12         - export https_proxy=http://172.17.0.1:3128/
       
    13         - python3.5 bootstrap.py --buildout-version=2.12.0
       
    14         - ./bin/buildout
       
    15     script:
    25     script:
    16         - ./bin/test
    26         - ./bin/test
    17 
    27 
    18 quality:
    28 quality:
    19     stage: test
    29     stage: quality
    20     image: docker:stable
    30     image: docker:stable
    21     variables:
    31     variables:
    22         DOCKER_DRIVER: overlay2
    32         DOCKER_DRIVER: overlay2
    23     allow_failure: true
    33     allow_failure: true
    24     services:
    34     services:
    25         - docker:stable-dind
    35         - docker:stable-dind
       
    36     before_script:
       
    37         - grep "version =" setup.py
    26     script:
    38     script:
    27         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    39         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    28         - docker run
    40         - docker run
    29             --env SOURCE_CODE="$PWD/src"
    41             --env SOURCE_CODE="$PWD/src"
    30             --volume "$PWD":/code
    42             --volume "$PWD":/code