forked from hive-engine/steemsmartcontracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 953 Bytes
/
.travis.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
branches:
only:
- "master"
- "hive-engine"
language: node_js
node_js:
- lts/*
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-4.4.5.tgz
- tar xzf mongodb-linux-x86_64-ubuntu1604-4.4.5.tgz
- ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/bin/mongod --version
# make mongodb a replica set
before_script:
- echo "replication:" | sudo tee -a /etc/mongod.conf
- |-
echo " replSetName: \"rs0\"" | sudo tee -a /etc/mongod.conf
- mkdir ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/data
- ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/data --config /etc/mongod.conf --logpath ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/mongodb.log --fork
- sleep 20
- ${PWD}/mongodb-linux-x86_64-ubuntu1604-4.4.5/bin/mongo --eval 'rs.initiate()'
- sleep 15
- npm ci
script:
- npm run lint
- npm run test
after_script:
- pkill mongod