-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (50 loc) · 997 Bytes
/
.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
stages:
- build
- test
- deploy
build_api:
stage: build
image: registry.forge.orange-labs.fr/swift-server-performances/kituraapi
script:
- swift build -c release
only:
- master
tags:
- docker
- shared
- forge
test_api:
stage: test
image: registry.forge.orange-labs.fr/swift-server-performances/kituraapi
services:
- postgres:latest
variables:
POSTGRES_DB: test
POSTGRES_USER: Supervisor
POSTGRES_PASSWORD: perform
DATABASE_DB: test
DATABASE_PORT: 5432
DATABASE_USER: Supervisor
DATABASE_PASSWORD: perform
DATABASE_HOST: postgres
script:
- swift test -c release
only:
- master
tags:
- docker
- shared
- forge
pages:
stage: deploy
script:
- cp -r docs public
artifacts:
paths:
- public
only:
- master
tags:
- debian
- docker
- forge