-
Notifications
You must be signed in to change notification settings - Fork 349
/
circle.yml
70 lines (63 loc) · 1.96 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## Customize the test machine
machine:
#timezone:
# America/Los_Angeles # Set the timezone
# Set version of node to use
#node:
# version:
# 5.7.0
post:
- source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- sudo apt-get update -o Dir::Etc::sourcelist="/etc/apt/sources.list.d/rethinkdb.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
- sudo apt-get install rethinkdb
## Set artifacts
# general:
# artifacts:
# - "client/npm-debug.log"
# - "server/npm-debug.log"
# - "cli/npm-debug.log"
## Customize dependencies
dependencies:
# Cache directories for speed
cache_directories:
- client/node_modules
- server/node_modules
- cli/node_modules
override:
# Stop default services
#- sudo service redis-server stop
#- sudo service postgresql stop
#- sudo service mysql stop
# Prepare for client tests
#- npm prune --production:
# pwd: client
# Prepare for server tests
#- npm prune --production:
# pwd: server
#- npm prune --production:
# pwd: cli
- ./setupDev.sh:
pwd: test
## Customize test commands
test:
pre:
- ./test/serve.js:
background: true
# - mkdir -p $CIRCLE_TEST_REPORTS/xunit
# - touch $CIRCLE_TEST_REPORTS/xunit/cli-tests.xml
# - touch $CIRCLE_TEST_REPORTS/xunit/client-tests.xml
# - touch $CIRCLE_TEST_REPORTS/xunit/server-tests.xml
override:
# Run client tests
- ./node_modules/.bin/mocha --timeout 100000 dist/test.js:
pwd: client
parallel: false
# Run server tests
- ./node_modules/.bin/mocha --timeout 100000 test/test.js test/schema.js:
pwd: server
parallel: false
# Run cli tests
- ./node_modules/.bin/mocha --timeout 100000 test:
pwd: cli
parallel: false