This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathconfig.yml
170 lines (141 loc) · 5.49 KB
/
config.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
defaults: &defaults
docker:
- image: ataylorme/docker-php-advanced-wordpress-on-pantheon:latest
working_directory: ~/pantheon-auto-updates
environment:
#=========================================================================
# In addition to the environment variables defined in this file, also
# add the following variables in the Circle CI UI.
#
# See: https://circleci.com/docs/2.0/environment-variables/
#
# TERMINUS_SITE: Name of the Pantheon site to run tests on, e.g. my_site
# TERMINUS_TOKEN: The Pantheon machine token
# GITHUB_TOKEN: The GitHub personal access token
# GIT_EMAIL: The email address to use when making commits
#
# TEST_SITE_NAME: The name of the test site to provide when installing.
# ADMIN_PASSWORD: The admin password to use when installing.
# ADMIN_EMAIL: The email address to give the admin when installing.
#=========================================================================
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
# The variables below usually do not need to be modified.
#======================================================================================================================================
# Circle CI 2.0 does not yet expand environment variables so they have to be manually EXPORTed
# Once environment variables can be expanded the variables below can be uncommented and the EXPORTs in set-up-globals.sh can be removed
# See: https://discuss.circleci.com/t/unclear-how-to-work-with-user-variables-circleci-provided-env-variables/12810/11
# See: https://discuss.circleci.com/t/environment-variable-expansion-in-working-directory/11322
# See: https://discuss.circleci.com/t/circle-2-0-global-environment-variables/8681
#======================================================================================================================================
# See set-up-globals.sh for more environment variables
TERM: dumb
version: 2
jobs:
build:
<<: *defaults
steps:
- checkout
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: fire off updates on multiple sites
command: ./.circleci/sites-to-update.sh
check_for_updates:
<<: *defaults
steps:
- checkout
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: declare framework
command: ./.circleci/set-framework.sh
- run:
name: check for updates
command: ./.circleci/auto-update.sh
no_output_timeout: 30m
visual_regression_test:
<<: *defaults
docker:
- image: ataylorme/docker-node-advanced-wordpress-on-pantheon:backstop-js
steps:
- checkout
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: run visual regression tests
command: ./.circleci/visual-regression-test.sh
no_output_timeout: 30m
- store_artifacts:
path: /tmp/artifacts
destination: artifacts
lighthouse_performance_test:
<<: *defaults
docker:
- image: ataylorme/docker-node-advanced-wordpress-on-pantheon:lighthouse
steps:
- checkout
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: run lighthouse tests
command: ./.circleci/lighthouse-performance-test.sh
no_output_timeout: 30m
- store_artifacts:
path: /tmp/artifacts
destination: artifacts
behat_test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- composer-cache
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: declare framework
command: ./.circleci/set-framework.sh
- run:
name: run behat tests
command: ./.circleci/behat-test.sh
no_output_timeout: 30m
- save_cache:
key: composer-cache
paths:
- $HOME/.composer/cache
deploy_updates:
<<: *defaults
steps:
- checkout
- run:
name: declare environment variables
command: ./.circleci/set-up-globals.sh
- run:
name: declare framework
command: ./.circleci/set-framework.sh
- run:
name: deploy updates
command: ./.circleci/deploy-updates.sh
no_output_timeout: 30m
workflows:
version: 2
commit-workflow:
jobs:
- build
# Remove the commented code below to run the build job on a daily cron
# update_and_test:
# triggers:
# - schedule:
# cron: "5 4 * * *"
# filters:
# branches:
# only:
# - master
# jobs:
# - build