-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
22 lines (19 loc) · 901 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
language: java
sudo: required
before_script:
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
- echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
- sudo apt-get update
- sudo apt-get install -y mongodb-org=3.0.6 mongodb-org-server=3.0.6 mongodb-org-shell=3.0.6 mongodb-org-mongos=3.0.6 mongodb-org-tools=3.0.6
- sudo service mongodb start
- "until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done"
- mongo --version
- mongo testdb --eval 'db.createUser( { "user":"build",pwd:"test","roles":[{"role":"readWrite","db":"testdb"}]});'
#import test json data here
- mongo testdb ./opengridservice/src/test/resources/testdata.js
script:
- mvn install -f ./opengridservice/pom.xml
notifications:
email:
on_success: change
on_failure: change