2015-12-05 23:31:05 +00:00
|
|
|
sudo: false
|
|
|
|
language:
|
|
|
|
- erlang
|
2013-04-23 18:54:21 +00:00
|
|
|
otp_release:
|
2018-06-28 18:31:20 +00:00
|
|
|
- 21.0
|
2018-01-06 21:48:01 +00:00
|
|
|
- 20.1
|
|
|
|
- 20.0
|
|
|
|
- 19.3
|
|
|
|
- 19.2
|
|
|
|
- 19.1
|
Fixing a minor error with OTP 19.0's dialyzer
It seems that OTP 19.0's dialyzer doesn't tolerate building records that
violate their specs any more; prior to this patch, it would raise the following
warnings:
```
jesse_cli.erl:61: The pattern {'ok', _} can never match the type {'error',_}
jesse_cli.erl:79: The pattern {'ok', _} can never match the type {'error',_}
jesse_schema_validator.erl:72: Function result/1 will never be called
jesse_state.erl:141: Record construction #state{current_path::[],error_list::[],id::'undefined'} violates the declared type of field id::binary()
jesse_state.erl:273: The pattern <'undefined', Id> can never match the type <binary() | [any()] | {'error',[any()],binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | char(),binary() | [])} | {'incomplete',[any()],binary()},[binary() | maybe_improper_list(any(),binary() | []) | char()]>
jesse_tests_util.erl:85: The pattern {'ok', _} can never match the type {'error',_}
```
Also adding OTP releases 18.3 and 19.0 to the Travis build
2016-06-25 19:45:18 +00:00
|
|
|
- 19.0
|
|
|
|
- 18.3
|
2016-04-04 16:41:25 +00:00
|
|
|
- 18.2
|
2015-12-05 23:31:05 +00:00
|
|
|
- 18.1
|
2018-01-06 22:17:40 +00:00
|
|
|
- 18.0
|
2015-12-05 23:31:05 +00:00
|
|
|
script:
|
2018-07-25 19:39:50 +00:00
|
|
|
- LATEST_OTP_RELEASE=21.0
|
|
|
|
- "[[ ${TRAVIS_OTP_RELEASE} != ${LATEST_OTP_RELEASE} ]] || make elvis"
|
2015-12-05 23:31:05 +00:00
|
|
|
- make
|
|
|
|
- make test
|