forked from softwerkskammer/Agora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 1.06 KB
/
.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
33
34
35
language: node_js
# Use faster Docker architecture on Travis. (http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/)
sudo: false
notifications:
slack: softwarecraftsmanship:AJPQ1HMqrsg2dEV5js9qt4rc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
# Run the build twice, once with mongodb 2 and 3
# run for mongo 3 requires mongodb service to pull in all dependencies
matrix:
include:
- node_js: "6.1"
env: CXX=g++-4.8
services:
- mongodb
before_script:
- npm install -g grunt-cli
- mongod --version
- node_js: "6.1"
env: CXX=g++-4.8 MONGODB=3.2.9
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1204-${MONGODB}.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ./mongodb-linux-x86_64-ubuntu1204-${MONGODB}/bin/mongod --version
- ./mongodb-linux-x86_64-ubuntu1204-${MONGODB}/bin/mongod --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
- npm install -g grunt-cli