forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 996 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
45
language: ruby
rvm:
- 2.6
- 2.5
- ruby-head
env:
global:
- COVERAGE=true JRUBY_OPTS=--debug
matrix:
- MONGODB=ubuntu1604-4.2.3
- MONGODB=ubuntu1604-4.0.16
sudo: false
cache:
bundler: true
directories:
- /home/travis/.cache/rubocop_cache
- /home/travis/mongodb-install
before_install:
- gem update --system
before_script:
- wget --directory-prefix=mongodb-install/ https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-install/mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- mkdir /tmp/mongodb-data
- >
${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod
--dbpath /tmp/mongodb-data
--logpath /tmp/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