forked from aselder/mongodb_ecto
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (34 loc) · 864 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
language: elixir
cache:
- apt
- directories:
- ~/.mongodb
elixir:
- 1.3
- 1.4
- 1.5
before_install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGOVERSION}.tgz
- tar xzf mongodb-linux-x86_64-${MONGOVERSION}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGOVERSION}/bin/mongod --version
- mkdir db
install:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- (cd examples/simple; mix deps.get)
before_script:
- ${PWD}/mongodb-linux-x86_64-${MONGOVERSION}/bin/mongod --dbpath db --logpath mongodb.log --fork
script:
- mix test
- (cd examples/simple; mix test)
after_script:
- mix deps.get --only docs
- MIX_ENV=docs mix inch.report
- MIX_ENV=test mix coveralls.travis
env:
matrix:
- MONGOVERSION=2.6.12
- MONGOVERSION=3.0.15
- MONGOVERSION=3.2.21
- MONGOVERSION=3.4.18