-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathcircle.yml
34 lines (32 loc) · 893 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
machine:
python:
version: 2.7.12
node:
version: 0.12.0
environment:
PEBBLE_TOOL: 4.3
PEBBLE_SDK: 3.14
post:
- npm install -g [email protected]
dependencies:
pre:
- . test/ensure-pebble-test-environment.sh
override:
- cd test/js; npm install
cache_directories:
- ~/.pebble-sdk
- ~/pebble-dev
- ~/imagemagick
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/js-unit-tests
- mkdir -p $CIRCLE_TEST_REPORTS/screenshots
override:
- cd test/js; node_modules/.bin/mocha test*.js --reporter mocha-jenkins-reporter:
environment:
JUNIT_REPORT_PATH: $CIRCLE_TEST_REPORTS/js-unit-tests/junit.xml
JUNIT_STACK: 1
- . ~/pebble-dev/path.sh; pebble build
- . ~/pebble-dev/path.sh; . test/do_screenshots.sh --junitxml=$CIRCLE_TEST_REPORTS/screenshots/junit.xml
post:
- cp -r test/output $CIRCLE_ARTIFACTS/output