forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
47 lines (47 loc) · 1.73 KB
/
circle.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
machine:
node:
version: 8.9.1
test:
pre:
- ? |
# make the build-server and i18n string data in parallel
if [[ "$CIRCLE_NODE_INDEX" == 0 ]]; then NODE_ENV=test npm run build-server; fi
if ( [[ "$CIRCLE_NODE_INDEX" == 1 ]] || [[ "$CIRCLE_NODE_TOTAL" == 1 ]] ) && [[ "$CIRCLE_BRANCH" == "master" ]]; then
npm run translate; mkdir -p $CIRCLE_ARTIFACTS/translate; mv calypso-strings.pot $CIRCLE_ARTIFACTS/translate
elif [[ "$CIRCLE_NODE_INDEX" == 1 ]] || [[ "$CIRCLE_NODE_TOTAL" == 1 ]]; then
git clone https://github.com/Automattic/gp-localci-client.git
bash gp-localci-client/generate-new-strings-pot.sh $CIRCLE_BRANCH $CIRCLE_SHA1 $CIRCLE_ARTIFACTS/translate
rm -rf gp-localci-client
fi
: parallel: true
override:
- bin/run-integration:
parallel: true
files:
- bin/**/integration/*.js
- client/**/integration/*.js
- server/**/integration/*.js
- npm run lint:config-defaults
- ./node_modules/.bin/eslint-eslines:
parallel: true
files:
- client/**/*.js
- client/**/*.jsx
- server/**/*.js
- server/**/*.jsx
- npm run test-client:ci:
parallel: true
files:
- client/**/test/*.js
- client/**/test/*.jsx
- npm run test-server:ci:
parallel: true
files:
- server/**/test/*.js
- server/**/test/*.jsx
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/ && find . -type f -regex "./test-results.*\.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;:
parallel: true
notify:
webhooks:
- url: https://translate.wordpress.com/api/localci/-relay-new-strings-to-gh