forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 993 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
rvm:
# Let's build with the most relevant versions first:
- 2.5
- 2.4
- 2.3
- ruby-head
env:
global:
- COVERAGE=true JRUBY_OPTS=--debug
matrix:
- MONGODB=4.0.0
- MONGODB=3.6.6
- MONGODB=3.4.15
sudo: false
cache: bundler
before_install:
- gem update --system
before_script:
- wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- >
${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod
--dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
--logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log
--fork
- until nc -z localhost 27017; do echo "waiting for mongodb ${MONGODB}"; sleep 1; done
- bundle exec rake errbit:bootstrap
script:
- bundle exec rspec
- bundle exec rubocop
matrix:
allow_failures:
- rvm: ruby-head