File tree 1 file changed +81
-0
lines changed
1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ bash_env : &bash_env
2
+ - cp bash_env.txt $BASH_ENV
3
+ - source $BASH_ENV
4
+
5
+ default_steps : &default_steps
6
+ - step :
7
+ name : Configure Environment Variables
8
+ image : quay.io/pantheon-public/build-tools-ci:6.x
9
+ script :
10
+ - CI_BRANCH=$BITBUCKET_BRANCH CI_BUILD_NUMBER=$BITBUCKET_BUILD_NUMBER PR_NUMBER=$BITBUCKET_PR_ID
11
+ - /build-tools-ci/scripts/set-environment
12
+ - cp $BASH_ENV bash_env.txt
13
+ artifacts :
14
+ - bash_env.txt
15
+ - parallel :
16
+ - step :
17
+ name : Static Tests
18
+ caches :
19
+ - composer
20
+ script :
21
+ << : *bash_env
22
+ - ./.ci/test/static/run
23
+ - step :
24
+ name : Build PHP
25
+ caches :
26
+ - composer
27
+ script :
28
+ << : *bash_env
29
+ - ./.ci/build/php
30
+ artifacts :
31
+ - web/**
32
+ - vendor/**
33
+ - step :
34
+ name : Deploy to Pantheon
35
+ script :
36
+ << : *bash_env
37
+ - ./.ci/deploy/pantheon/dev-multidev
38
+ artifacts :
39
+ - web/**
40
+ - vendor/**
41
+ - step :
42
+ name : Test Visual Regression
43
+ image : backstopjs/backstopjs:4.1.9
44
+ caches :
45
+ - npm
46
+ variables :
47
+ CI_BUILD_URL : $CI_PIPELINE_IID
48
+ CI_REPOSITORY_URL : $CI_MERGE_REQUEST_IID
49
+ ARTIFACTS_DIR_URL : https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/$CI_JOB_ID/artifacts
50
+ script :
51
+ << : *bash_env
52
+ - ./.ci/test/visual-regression/run
53
+ artifacts :
54
+ - backstop_data/**
55
+ - step :
56
+ name : Test Behat
57
+ caches :
58
+ - composer
59
+ script :
60
+ << : *bash_env
61
+ - ./.ci/test/behat/initialize
62
+ # Start headless Chrome
63
+ - google-chrome --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --no-sandbox </dev/null &>/dev/null &
64
+ - ./.ci/test/behat/run
65
+ after-script :
66
+ - ./.ci/test/behat/cleanup
67
+ artifacts :
68
+ - behat-screenshots/**
69
+
70
+ image : quay.io/pantheon-public/build-tools-ci:6.x
71
+
72
+ options :
73
+ max-time : 30
74
+
75
+ pipelines :
76
+ pull-requests :
77
+ ' ** ' :
78
+ << : *default_steps
79
+ branches :
80
+ master :
81
+ << : *default_steps
You can’t perform that action at this time.
0 commit comments