2017-02-27 11:14:39 +00:00
|
|
|
image: gsiupm/dockermake:latest
|
2017-02-13 11:04:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# When using dind, it's wise to use the overlayfs driver for
|
|
|
|
# improved performance.
|
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay
|
2017-02-13 17:29:38 +00:00
|
|
|
DOCKERFILE: Dockerfile
|
2017-02-27 11:14:39 +00:00
|
|
|
VERSION: $CI_BUILD_REF
|
2017-02-27 10:37:43 +00:00
|
|
|
|
2017-02-13 11:04:29 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2017-02-13 18:41:18 +00:00
|
|
|
- images
|
2017-02-13 11:04:29 +00:00
|
|
|
- release
|
2017-02-27 11:14:39 +00:00
|
|
|
- clean
|
2017-02-13 11:04:29 +00:00
|
|
|
|
|
|
|
.test: &test_definition
|
2017-02-13 18:41:18 +00:00
|
|
|
stage: test
|
2017-02-13 11:04:29 +00:00
|
|
|
script:
|
2017-02-27 11:14:39 +00:00
|
|
|
- make -e test-$PYTHON_VERSION
|
2017-02-17 10:24:57 +00:00
|
|
|
|
2017-02-13 11:04:29 +00:00
|
|
|
test-3.5:
|
|
|
|
<<: *test_definition
|
2017-02-27 11:14:39 +00:00
|
|
|
variables:
|
|
|
|
PYTHON_VERSION: "3.5"
|
2017-02-13 11:04:29 +00:00
|
|
|
|
|
|
|
test-2.7:
|
|
|
|
<<: *test_definition
|
2017-02-27 11:14:39 +00:00
|
|
|
variables:
|
|
|
|
PYTHON_VERSION: "2.7"
|
2017-02-13 11:04:29 +00:00
|
|
|
|
2017-02-13 18:41:18 +00:00
|
|
|
|
2017-02-13 11:04:29 +00:00
|
|
|
.image: &image_definition
|
2017-02-27 11:14:39 +00:00
|
|
|
stage: images
|
2017-02-13 18:41:18 +00:00
|
|
|
variables:
|
|
|
|
PYTHON_VERSION: "3.5"
|
2017-02-27 11:14:39 +00:00
|
|
|
VERSION: $CI_BUILD_TAG
|
|
|
|
IMAGENAME: $CI_REGISTRY_IMAGE
|
2017-02-13 18:43:52 +00:00
|
|
|
before_script:
|
|
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
2017-02-13 11:04:29 +00:00
|
|
|
script:
|
2017-02-27 11:14:39 +00:00
|
|
|
- make -e push-$PYTHON_VERSION
|
2017-02-13 11:04:29 +00:00
|
|
|
only:
|
2017-02-13 18:41:18 +00:00
|
|
|
- tags
|
|
|
|
- triggers
|
2017-02-13 11:04:29 +00:00
|
|
|
|
|
|
|
image-3.5:
|
|
|
|
<<: *image_definition
|
|
|
|
variables:
|
2017-02-13 18:41:18 +00:00
|
|
|
PYTHON_VERSION: "3.5"
|
2017-02-13 11:04:29 +00:00
|
|
|
|
|
|
|
image-2.7:
|
|
|
|
<<: *image_definition
|
|
|
|
variables:
|
2017-02-13 18:41:18 +00:00
|
|
|
PYTHON_VERSION: "2.7"
|
|
|
|
|
|
|
|
image-latest:
|
|
|
|
stage: release
|
2017-02-27 18:30:02 +00:00
|
|
|
variables:
|
|
|
|
IMAGENAME: $CI_REGISTRY_IMAGE
|
2017-02-13 19:36:12 +00:00
|
|
|
before_script:
|
|
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
2017-02-13 18:41:18 +00:00
|
|
|
script:
|
2017-02-27 11:14:39 +00:00
|
|
|
- make -e push-latest
|
2017-02-13 18:41:18 +00:00
|
|
|
only:
|
|
|
|
- master
|
2017-02-27 11:14:39 +00:00
|
|
|
- triggers
|
|
|
|
|
|
|
|
clean :
|
|
|
|
stage: clean
|
|
|
|
script:
|
|
|
|
- make -e clean
|