.gitlab-ci.yml 1.56 KB
Newer Older
1
# # GitLab CI Job Configuration
2
#
3
4
5
6
# Goal: Run all jobs defined here on all available runners (GNU/Linux and
# Windows).
# 
# ## Job Description Syntax
7
8
#
# <job_name>:                   # Job name which is displayed in web interface.
9
10
#   stage: <stage_name>         # Run "script" commands in this stage. The
#                               # stages are exececuted sequentially.
11
12
13
14
15
#   script:
#      - <arbitrary_commands>   # Here you can execute arbitratry terminal
#                               # commands. If any of the commands return a
#                               # non-zero exit code, the job fails.
#
16
# Procedure: Use GitLab job templates in ".gitlab/ci/templates/" and use them
17
# in the job description by using the "extend" keyword.
18
#
19
# ## References
20
#
21
# - https://docs.gitlab.com/ee/ci/yaml/README.html
22

23
# Variable Definitions
24
25
variables:
    VADERE_DEPLOYMENT_BASE_URL: "http://www.vadere.org/builds"
Daniel Lehmberg's avatar
Daniel Lehmberg committed
26
    VADERE_PACKAGE_NAME: "vadere.${CI_COMMIT_REF_NAME}.${CI_ENVIRONMENT_NAME}"
27

28
# Stage Definitions
29
stages:
Daniel Lehmberg's avatar
Daniel Lehmberg committed
30
    - deploy
31

32
include: .gitlab/ci/templates/deploy_stage_templates.yml
33
# include: .gitlab/ci/templates/test_stage_templates.yml
34

35
# Job Definitions
36

37
38
39
40
41
42
43
44
45
46
47
# WATCH OUT: "include: .gitlab/ci/windows_jobs.yml" does not work!
# Seems a bug in GitLab's "include" statement. Therefore, define all jobs
# directly here.

deploy_branch_on_windows:
    extends: .template_deploy_branch
    tags:
        - windows        
    environment:
        name: windows
        url: ${VADERE_DEPLOYMENT_BASE_URL}/branches/vadere-console.${CI_COMMIT_REF_NAME}.${CI_COMMIT_SHA}.${CI_ENVIRONMENT_NAME}.jar"