-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
52 lines (44 loc) · 1.3 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
image:
name: registry.gitlab.com/consensus.enterprises/drumkit/php
entrypoint: [""] # We have to override the container entrypoint or else we end up in /bin/sh and `. d` doesn't work. See https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#overriding-the-entrypoint-of-an-image
stages:
- test
- publish
variables:
GIT_SUBMODULE_STRATEGY: recursive
DEBIAN_FRONTEND: noninteractive
fast-tests: &test-defaults
stage: test
script:
- source d
- make clean-ansible # Clean up Ansible config from Drumkit itself.
- make run-behat-ci
slow-tests:
<<: *test-defaults
variables:
BEHAT_CI_TAGS: '@slow&&~@wip'
# This test will fail (on purpose), in order to test that failure notifications are sent.
noisy-tests:
<<: *test-defaults
variables:
NOTIFY_CI_MESSAGE: Notification test; safe to ignore failures.
script:
- source d
- BEHAT_CI_TAGS=success make run-behat-ci
- BEHAT_CI_TAGS=failure make run-behat-ci
when: manual
allow_failure: true
pages:
stage: publish
image: registry.gitlab.com/pages/hugo:latest
before_script:
# Check the current version of Hugo, so we can keep our local env in sync.
- hugo version
script:
# Build our docs site.
- cd docs && hugo && mv public/ ..
artifacts:
paths:
- public
only:
- master