forked from xolvio/qualityfaster
-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
56 lines (47 loc) · 1.53 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
machine:
java:
version: oraclejdk8
node:
version: 5.2.0
general:
branches:
ignore:
- gh-pages
dependencies:
cache_directories:
- "node_modules"
- "~/.npm"
- "~/_opt"
- "~/mongodb-linux-x86_64-2.6.4"
- "~/.meteor"
- "src/.meteor/local/build"
- "src/.meteor/local/bundler-cache"
- "src/.meteor/local/db"
- "src/.meteor/local/isopacks"
- "src/.meteor/local/plugin-cache"
- "src/.meteor/local/mirrors"
override:
# Cache Mongo 2.6
- if [[ ! -d ~/mongodb-linux-x86_64-2.6.4 ]]; then cd ~; wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz && tar xvzf ~/mongodb-linux-x86_64-2.6.4.tgz; fi
- sudo /etc/init.d/mongodb stop
- sudo cp ~/mongodb-linux-x86_64-2.6.4/bin/* /usr/bin
- sudo service mongodb start
# Cache Metoer
- if [ -d ~/.meteor ]; then sudo ln -s ~/.meteor/meteor /usr/local/bin/meteor; fi
- if [ ! -e $HOME/.meteor/meteor ]; then curl https://install.meteor.com | sh; fi
# Cache npm deps
- npm install
# Cache Velocity Meteor Release
- .scripts/cache-velocity.js:
environment:
MONGO_URL: "mongodb://localhost:27017/velocity_cache"
# Cache Selenium & ChromeDriver
- ./node_modules/.bin/chimp --path=content # there are no tests in content
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/cucumber
override:
- npm test:
environment:
MONGO_URL: "mongodb://localhost:27017/meteor"
CUCUMBER_JSON_OUTPUT: "$CIRCLE_TEST_REPORTS/cucumber/chrome.cucumber"