forked from jyemin/mongo-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 1009 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
33
34
35
36
37
38
39
40
41
42
43
44
dist: trusty
sudo: true
language: java
jdk:
- oraclejdk9
notifications:
email:
recipients:
on_success: change
on_failure: always
branches:
only:
- master
env:
global:
- MONGODB_FILE_NAME=mongodb-linux-x86_64-enterprise-ubuntu1404
- MONGODB=3.6.1
addons:
apt:
packages:
- libsnmp-dev
install:
- wget http://downloads.mongodb.com/linux/${MONGODB_FILE_NAME}-${MONGODB}.tgz
- tar xzf ${MONGODB_FILE_NAME}-${MONGODB}.tgz
- ${PWD}/${MONGODB_FILE_NAME}-${MONGODB}/bin/mongod --version
before_script:
- mkdir ${PWD}/${MONGODB_FILE_NAME}-${MONGODB}/data
- ${PWD}/${MONGODB_FILE_NAME}-${MONGODB}/bin/mongod --dbpath ${PWD}/${MONGODB_FILE_NAME}-${MONGODB}/data --logpath ${PWD}/${MONGODB_FILE_NAME}-${MONGODB}/mongodb.log --setParameter enableTestCommands=1 --fork --smallfiles --nojournal
script:
- ./gradlew -q assemble
- ./gradlew check -Ptravistest=true
- ./gradlew docs
after_script:
- pkill mongod