1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-09-20 22:01:41 +00:00
senpy/.gitlab-ci.yml

81 lines
1.2 KiB
YAML
Raw Normal View History

2017-05-19 12:38:29 +00:00
# Uncomment if you want to use docker-in-docker
# image: gsiupm/dockermake:latest
# services:
# - docker:dind
2017-02-13 11:04:29 +00:00
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
2017-05-19 12:38:29 +00:00
2017-02-13 11:04:29 +00:00
variables:
2017-02-27 19:44:27 +00:00
IMAGENAME: $CI_REGISTRY_IMAGE
2017-02-13 11:04:29 +00:00
stages:
- test
2017-02-27 19:00:09 +00:00
- push
2017-05-19 12:38:29 +00:00
- deploy
- clean
2017-02-13 11:04:29 +00:00
2017-05-19 12:38:29 +00:00
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
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:
- 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
variables:
PYTHON_VERSION: "3.5"
2017-02-13 11:04:29 +00:00
test-2.7:
<<: *test_definition
variables:
PYTHON_VERSION: "2.7"
2017-02-13 11:04:29 +00:00
.image: &image_definition
2017-02-27 19:00:09 +00:00
stage: push
2017-02-13 11:04:29 +00:00
script:
- 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
2017-02-27 19:00:09 +00:00
push-3.5:
2017-02-13 11:04:29 +00:00
<<: *image_definition
variables:
2017-02-13 18:41:18 +00:00
PYTHON_VERSION: "3.5"
2017-02-13 11:04:29 +00:00
2017-02-27 19:00:09 +00:00
push-2.7:
2017-02-13 11:04:29 +00:00
<<: *image_definition
variables:
2017-02-13 18:41:18 +00:00
PYTHON_VERSION: "2.7"
2017-02-27 19:00:09 +00:00
push-latest:
<<: *image_definition
2017-02-27 18:30:02 +00:00
variables:
PYTHON_VERSION: latest
2017-02-13 18:41:18 +00:00
only:
- master
- triggers
2017-05-19 12:38:29 +00:00
deploy:
stage: deploy
environment: test
script:
- make -e deploy
only:
- master
2017-05-19 15:55:52 +00:00
push-github:
stage: deploy
script:
- make -e push-github
only:
- master
- triggers
clean :
stage: clean
script:
- make -e clean
2017-05-19 12:38:29 +00:00
when: manual