-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
49 lines (40 loc) · 1.37 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
## Customize the test machine
machine:
timezone:
America/Los_Angeles # Set the timezone
# Later figure out how to pre-install cache version of Node 4.6.0 or 4.6.1
# pre:
# - curl -k -L -o phantomjs.tar.bz2 http://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2
# - tar -jxf phantomjs.tar.bz2
# Version of node to use
node:
version: 4.2.6
## Customize database setup
#database:
# pre:
# Stop MongoDB
#- sudo service mongodb stop
# Download MongoDB 3.2.3
#- curl -Ol https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1204-3.2.3.tgz
# Untar it
#- tar -zxvf mongodb-linux-x86_64-ubuntu1204-3.2.3.tgz
# Create data directory
#- mkdir -p ./data/db
# Fork MongoDB and log to './mongod.log'. Print the log file if it failed.
#- ./mongodb-linux-x86_64-ubuntu1204-3.2.3/bin/mongod --dbpath ./data/db --logpath ./mongod.log --fork || cat ./mongod.log
## Customize dependencies
dependencies:
override:
- npm install
## Customize test commands
test:
override:
- npm test
## Customize deployment commands
# We can deply using SSH
deployment:
production:
branch: master
commands:
- ssh [email protected] "echo ${CIRCLE_BRANCH}"
- ssh [email protected] "./scripts/deploy.sh ${CIRCLE_BRANCH}"