forked from elixir-mongo/mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 925 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
sudo: required
language: elixir
elixir:
- 1.4
- 1.5
- 1.6
- 1.7
cache:
- apt
- directories:
- ~/.mongodb
- ./plt_core_path
before_install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install -g mongodb-version-manager
- m use $MONGOVERSION
- bash ./start_mongo.bash
- mkdir db
before_script:
- export PATH=$(m path):$PATH
- echo $PATH
- mongod --fork --logpath mongo.log --dbpath db
script:
- mix test
- not_allowed=(1.3 1.4 1.5)
- case "${not_allowed[@]}" in *"${TRAVIS_ELIXIR_VERSION}"*) dialyzer=0 ;; *) dialyzer=1 ;; esac
- if [ "$dialyzer" -eq 1 ]; then mix dialyzer --halt-exit-status; fi
env:
matrix:
- MONGOVERSION=3.0.15 TRAVIS_NODE_VERSION=4
- MONGOVERSION=3.2.22 TRAVIS_NODE_VERSION=4
- MONGOVERSION=3.4.18 TRAVIS_NODE_VERSION=4
- MONGOVERSION=3.6.9 TRAVIS_NODE_VERSION=4
- MONGOVERSION=4.0.5 TRAVIS_NODE_VERSION=4