-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.gitlab-ci.yml
98 lines (80 loc) · 2.18 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
##########
# Stages #
###############################################################################
stages:
- docker_image
- build
- test
- documentation
################
# Docker image #
###############################################################################
docker_image:
stage: docker_image
image: docker:latest
only:
- toolchain
except:
- branches
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/toolchain:master toolchain/
- docker push $CI_REGISTRY_IMAGE/toolchain:master
#########
# Build #
###############################################################################
build:
image: $CI_REGISTRY/cyberegoorg/cetech/toolchain:master
stage: build
allow_failure: true
variables:
GIT_SUBMODULE_STRATEGY: normal
artifacts:
paths:
- bin
script:
- tools/linux64/genie --gcc=linux-clang gmake
- make -C .build/projects/gmake-linux-clang/ config=debug64
- make -C .build/projects/gmake-linux-clang/ config=release64
########
# Test #
###############################################################################
test_release:
image: $CI_REGISTRY/cyberegoorg/cetech/toolchain:master
stage: test
allow_failure: true
variables:
SDL_VIDEODRIVER: dummy
dependencies:
- build
script:
- bin/linux64/cetech_develop -compile -src ./examples/develop/src -build ./examples/develop/build -renderer.type noop
test_debug:
image: $CI_REGISTRY/cyberegoorg/cetech/toolchain:master
stage: test
allow_failure: true
variables:
SDL_VIDEODRIVER: dummy
dependencies:
- build
script:
- bin/linux64/cetech_develop_debug -compile -src ./examples/develop/src -build ./examples/develop/build -renderer.type noop
################
# Gitlab pages #
###############################################################################
pages:
image: $CI_REGISTRY/cyberegoorg/cetech/toolchain:master
stage: documentation
script:
- tools/linux64/genie doc
- cp -R docs public
- cp docs/index.md.html public/index.html
dependencies:
- build
only:
- master
artifacts:
paths:
- public