-
Notifications
You must be signed in to change notification settings - Fork 18
/
circle.yml
41 lines (34 loc) · 978 Bytes
/
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
dependencies:
pre:
- sudo apt-get update; sudo apt-get install libsecret-1-dev
## Customize the test machine
machine:
# Version of node to use
node:
version: 6.10.3
# Override /etc/hosts
hosts:
circlehost: 127.0.0.1
dev.mycompany.com: 127.0.0.1
# Add some environment variables
environment:
CIRCLE_ENV: test
## Customize general stuff
general:
artifacts:
- "artifacts/$CIRCLE_PROJECT_REPONAME-$CIRCLE_BRANCH-$CIRCLE_BUILD_NUM.tar" # relative to the build directory
## Customize test commands
test:
override:
- npm run test-circle:
environment:
MOCHA_FILE: $CIRCLE_TEST_REPORTS/junit/test-results.xml
post:
- npm run test-coverage
# Move the coverage report to the artifacts folder
- mv coverage/ $CIRCLE_ARTIFACTS/coverage
## Custom notifications
notify:
webhooks:
# A list of hashes representing hooks. Only the url field is supported.
# - url: https://someurl.com/hooks/circle