-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Luca Favatella
committed
Mar 6, 2017
1 parent
7761535
commit 50f2081
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sudo: false | ||
language: erlang | ||
otp_release: | ||
- 19.2 | ||
- 18.3 | ||
before_install: | ||
- ./ci before_install "${PWD:?}"/rebar3 | ||
install: | ||
- ./ci install "${PWD:?}"/rebar3 | ||
script: | ||
- ./ci script "${PWD:?}"/rebar3 | ||
cache: | ||
directories: | ||
- .plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -ev # Ref https://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps | ||
|
||
case "${1:?}" in | ||
before_install) | ||
## Travis CI does not support rebar3 yet. See https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490 | ||
Rebar3="${2:?}" | ||
curl -f -L -o "${Rebar3:?}" https://github.com/erlang/rebar3/releases/download/3.3.5/rebar3 | ||
chmod +x "${Rebar3:?}" | ||
;; | ||
install) | ||
Rebar3="${2:?}" | ||
"${Rebar3:?}" deps | ||
"${Rebar3:?}" dialyzer -u true -s false | ||
;; | ||
script) | ||
Rebar3="${2:?}" | ||
"${Rebar3:?}" ct | ||
;; | ||
esac |