-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml.dist
101 lines (90 loc) · 1.96 KB
/
.gitlab-ci.yml.dist
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
99
100
101
image: troopers/docker-images:ci-victoire
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
- mkdir -p src/AppBundle/Resources/public/bower_components
variables:
SYMFONY__DATABASE_TEST_HOST: 127.0.0.1:8000
SYMFONY__DATABASE_TEST_USER: root
SYMFONY__DATABASE_TEST_PASSWORD: ''
SYMFONY__DATABASE_NAME_TEST: app_test
SYMFONY__DATABASE_NAME: app
SYMFONY__DATABASE_USER: root
SYMFONY__ASSETIC__SASS__BIN: /usr/local/bin/sass
SYMFONY__ASSETIC__RUBY__BIN: /usr/bin/ruby
SYMFONY__VICTOIRE_REDIS_PATH_TEST: redis://127.0.0.1
SYMFONY__ROUTER__REQUEST_CONTEXT__HOST: 127.0.0.1
SYMFONY__ROUTER__REQUEST_CONTEXT__SCHEME: http
SYMFONY__FOS_JS_BASE_URL: http://127.0.0.1:8000
SYMFONY__MAILER_PORT: '1025'
SYMFONY__MAILER_HOST: 127.0.0.1
TEST_PARALLELISM_CONTAINER_TOTAL: '4'
cache:
paths:
- src/AppBundle/Resources/public/bower_components/
- vendor/
stages:
- install
- tests
###### INSTALL ######
install:
stage: install
script:
- ci/install.sh
tags:
- fast
artifacts:
paths:
- bin
- node_modules
- web
- vendor
- var
expire_in: 2 hrs
when: on_success
.job_template: &job_definition
stage: tests
dependencies:
- install
artifacts:
paths:
- var/fails/
- var/logs/
expire_in: 24 hrs
when: on_failure
except:
- /^release\/.*$/
job:1:
<<: *job_definition
script:
- ./ci/services.sh
- ./ci/parallelBehat.sh 1
job:2:
<<: *job_definition
script:
- ./ci/services.sh
- ./ci/parallelBehat.sh 2
job:3:
<<: *job_definition
script:
- ./ci/services.sh
- ./ci/parallelBehat.sh 3
job:4:
<<: *job_definition
script:
- ./ci/services.sh
- ./ci/parallelBehat.sh 4
test:checkstyle:
stage: tests
dependencies:
- install
script:
- sh ci/php-cs-fixer.sh
artifacts:
paths:
- var/patch.diff
expire_in: 24 hrs
when: on_failure
tags:
- slow
allow_failure: true