-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
43 lines (42 loc) · 1.42 KB
/
.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
# Currently only travis can
# - run Elixir tests (OTP 18+)
# - run on old Erlang version (OTP R16B)
# - submit coveralls report
language: erlang
branches:
only:
- master
matrix:
include:
- otp_release: 23.0
env:
- NEW_REBAR=true
# hdr_histogram up to 0.4.0 fails to compile with OTP 23
- XPROF_ERL_HIST=true
- ELIXIR_VERSION=1.10.3
- otp_release: 22.3
env: NEW_REBAR=true
- otp_release: 21.3
env: NEW_REBAR=true
- otp_release: 20.3
- otp_release: 19.3
- otp_release: 19.3
env: XPROF_ERL_HIST=true
- otp_release: 18.3
dist: trusty
env: COWBOY_VERSION=1.1.2
cache:
directories:
- $HOME/.cache/rebar3
- $HOME/.kiex/
install:
- if [ -n "$ELIXIR_VERSION" ]; then kiex use "$ELIXIR_VERSION" --default || (kiex install "$ELIXIR_VERSION" && kiex use "$ELIXIR_VERSION" --default); fi
- if [ -n "$NEW_REBAR" ]; then curl -O -L https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 ; fi
- ./rebar3 --version
- ./rebar3 deps
script:
- kiex use "$ELIXIR_VERSION" && make test
- if [ $TRAVIS_OTP_RELEASE = "21.3" ]; then make doc dialyzer; fi
- if [ $TRAVIS_OTP_RELEASE = "18.3" ]; then make dialyzer; fi # run dialyzer with cowboy 1.x too
after_success:
- if [ $TRAVIS_OTP_RELEASE = "21.3" ]; then ./rebar3 as test coveralls send; fi