forked from music-of-the-ainur/mongodb.almaren
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (33 loc) · 1.04 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
36
37
38
39
40
41
42
43
44
sudo: false
language: scala
jdk: openjdk8
scala:
- 2.12.15
script:
- sbt +test
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
env:
global:
- MONGODB_FILE_NAME=mongodb-linux-x86_64-enterprise-ubuntu1404
- MONGODB=4.0.0
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
after_script:
- pkill mongod