Skip to content
Permalink
Browse files
add ci script
  • Loading branch information
DLive committed Mar 6, 2019
1 parent c544191 commit 614de5701d1925db23f1e6b2b2999f540f3b2ee8
Showing 1 changed file with 21 additions and 0 deletions.
21 ci
@@ -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

0 comments on commit 614de57

Please sign in to comment.