Commit 6540ce9e authored by Thomas Vincent's avatar Thomas Vincent

rename jobs and definition

parent 65c5bfdc
......@@ -10,8 +10,9 @@ variables: # Global variables
no_proxy: .esrf.fr,localhost
# Target definitions
.build_template: &build_definition
.linux_build_template: &linux_build_definition
stage: build
tags: linux
image: ${IMAGE}
before_script:
- rm -rf ${VENV_DIR}
......@@ -35,8 +36,9 @@ variables: # Global variables
when: on_success
expire_in: 2h
.test_template: &test_definition
.linux_test_template: &linux_test_definition
stage: test
tags: linux
image: ${IMAGE}
before_script:
- rm -rf ${VENV_DIR}
......@@ -58,37 +60,37 @@ variables: # Global variables
# Python2 tasks
.python2_variables:
variables: &python2_definition
.linux_python2_variables:
variables: &linux_python2_definition
IMAGE: python:2.7-jessie
PYTHON: python2
build_python2:
<<: *build_definition
variables: *python2_definition
linux_build_python2:
<<: *linux_build_definition
variables: *linux_python2_definition
test_python2:
<<: *test_definition
linux_test_python2:
<<: *linux_test_definition
dependencies:
- build_python2
variables: *python2_definition
- linux_build_python2
variables: *linux_python2_definition
# Python3 tasks
.python3_variables:
variables: &python3_definition
.linux_python3_variables:
variables: &linux_python3_definition
IMAGE: python:3.4-jessie
PYTHON: python3
build_python3:
<<: *build_definition
variables: *python3_definition
linux_build_python3:
<<: *linux_build_definition
variables: *linux_python3_definition
test_python3:
<<: *test_definition
linux_test_python3:
<<: *linux_test_definition
dependencies:
- build_python3
variables: *python3_definition
- linux_build_python3
variables: *linux_python3_definition
# Deploy documentation in gitlab (only for master branch)
......@@ -96,7 +98,7 @@ pages:
stage: deploy
image: python:3.4-jessie
dependencies:
- build_python3
- linux_build_python3
script:
- rm -rf public
- mv build/sphinx/html public
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment