forked from mongodb/mongo-ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (34 loc) · 895 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
language: ruby
sudo: false
before_install:
- gem update --system -q
- gem update bundler -q
install: ruby -S bundle install --without release development
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB_VERSION}.tgz -O /tmp/mongodb.tgz
- tar -xvf /tmp/mongodb.tgz
- mkdir /tmp/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --setParameter enableTestCommands=1 --dbpath /tmp/data --bind_ip 127.0.0.1 --auth &> /dev/null &
- export MONGODB_VERSION=${MONGODB_VERSION}
rvm:
- 1.9.3
- 2.5
branches:
only:
- master
- 2.5-stable
matrix:
exclude:
- rvm: 1.9.3
env: MONGODB_VERSION=4.0.1
- rvm: 2.5
env: MONGODB_VERSION=2.6.12
env:
global:
- CI="travis"
matrix:
- MONGODB_VERSION=2.6.12
- MONGODB_VERSION=4.0.1
script: bundle exec rake spec:ci
notifications:
email: false