-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (40 loc) · 959 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
image: tailhook/vagga:v0.7.2-93-g0884e15
stages:
- build
- test
- deploy
before_script:
- export FEATURES_SHASH=`vagga _version_hash --short features`
- export TEST_SHASH=`vagga _version_hash --short test`
- export MYSQL_SHASH=`vagga _version_hash --short mysql`
- "echo Features: $FEATURES_SHASH\\; Test: $TEST_SHASH\\; MySQL: $MYSQL_SHASH."
cache:
paths:
- .gitlab/containers
vagga:build:
stage: build
# basically just run pre-commit linters
script:
- cp -v .gitlab/.vagga.yaml ~
- mkdir /root/
- cp -v .gitlab/.vagga.yaml /root/.vagga.yaml
- env
- vagga _build test &
- test_build_pid=$!
- vagga _build mysql &
- mysql_build_pid=$!
- wait
- vagga _push_image mysql
- vagga _push_image features
- vagga _push_image test
artifacts:
paths:
- .gitlab/containers
cache: {}
vagga:lint:
stage: test
# basically just run pre-commit linters
script: vagga lint
vagga:test:
stage: test
script: vagga test