diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0659c34acd826dc173cb96a3e8c344bfc32f7ec..37b740316618de8754ed4bbba0eddee51da1d92f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,3 @@ -before_script: - - git config --global url.https://.insteadOf git:// - - mkdir -p ~/.hex ~/.config/rebar3 - - printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config - - printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config - - if [ "$HTTP_PROXY" != "" ]; then printf "{http_proxy,\"$HTTP_PROXY\"}.\n" >> ~/.config/rebar3/rebar.config; fi - - if [ "$HTTPS_PROXY" != "" ]; then printf "{https_proxy,\"$HTTPS_PROXY\"}.\n" >> ~/.config/rebar3/rebar.config; fi - - rebar3 update - stages: - compile - test @@ -28,7 +19,8 @@ hex_publish: only: - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version script: - - rebar3 update + - mkdir -p ~/.hex && printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config + - mkdir -p ~/.config/rebar3 && printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config - echo "Y" | rebar3 hex publish aws_publish: