forked from gaybro8777/api-umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
48 lines (47 loc) · 1.71 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
48
general:
artifacts:
# Keep logs after running to help debug if errors do crop up.
- /tmp/api-umbrella-test/var/log
- src/api-umbrella/web-app/log
# Keep screenshots of capybara failures for easier debugging.
- src/api-umbrella/web-app/tmp/capybara
machine:
pre:
# Enable IPv6 on CircleCI for running IPv6 integration tests.
- sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
node:
version: 0.10.40
dependencies:
cache_directories:
- build/work/stage
- build/work/test-env
- build/work/tmp/web-assets
- build/work/vendor
pre:
# Stop the older MongoDB 2.4 version in favor of the one bundled with API
# Umbrella.
- sudo stop mongodb
override:
# Build all the API Umbrella software dependencies.
- make --debug
- make test_dependencies --debug
# Remove the "vendor" symlink (to the cached build/work/vendor), since this
# symlink seems to mess up CircleCI's caching.
- rm -f vendor
compile:
override:
# Don't perform any compile tasks that CircleCI infers. We'll run our
# tasks.
- /bin/true
test:
override:
# Run the across parallel CI nodes.
- test/circle_parallel:
parallel: true
# Copy the test reports into place.
- mkdir -p $CIRCLE_TEST_REPORTS/rspec $CIRCLE_TEST_REPORTS/mocha:
parallel: true
- if [ -e src/api-umbrella/web-app/spec/reports/web-app.xml ]; then cp src/api-umbrella/web-app/spec/reports/web-app.xml $CIRCLE_TEST_REPORTS/rspec/; fi:
parallel: true
- if [ -e test/tmp/xunit$CIRCLE_NODE_INDEX.xml ]; then cp test/tmp/xunit$CIRCLE_NODE_INDEX.xml $CIRCLE_TEST_REPORTS/mocha/; fi:
parallel: true