forked from elixir-mongo/mongodb_ecto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (42 loc) · 867 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
46
47
48
49
50
51
52
language: elixir
cache:
- apt
- directories:
- ~/.mongodb
elixir:
- 1.1
- 1.3
otp_release:
- 18.1
before_install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install -g mongodb-version-manager@1.0.6
- m use $MONGOVERSION
- mkdir db
install:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- (cd examples/simple; mix deps.get)
before_script:
- sudo service mongodb stop
- export PATH=$(m path):$PATH
- mongod --fork --logpath mongo.log --dbpath db
script:
- mix test
- (cd examples/simple; mix test)
after_script:
- mix deps.get --only docs
- mix inch.report
- MIX_ENV=test mix coveralls.travis
env:
matrix:
- MONGOVERSION=2.4.14
- MONGOVERSION=2.6.12
- MONGOVERSION=3.0.12
- MONGOVERSION=3.2.10
notifications:
recipients:
- michal@muskala.eu