Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
more attempts to do Hex
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Waisbrot committed May 12, 2016
1 parent 85c346f commit 5c5a149
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ script:
deploy:
skip_cleanup: true
provider: script
script: scripts/deploy-hex.sh
script: ./scripts/deploy-hex.sh
on:
tags: true
condition: $REBAR_VSN = '3'
erlang: 18.2
otp_release: 18.2
15 changes: 13 additions & 2 deletions scripts/deploy-hex.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
#!/bin/sh -e
#!/bin/sh -ex

if [[ $TRAVIS_OTP_RELEASE != "18.2" ]]; then
echo Skipping deploy for this OTP release version
exit 0
fi

echo Create directories
mkdir -p ~/.hex
mkdir -p ~/.config/rebar3

echo Decrypt secrets
set +x
openssl aes-256-cbc -K $encrypted_fffbebb689b3_key -iv $encrypted_fffbebb689b3_iv -in scripts/hex.config.enc -out ~/.hex/hex.config -d

set -x

echo Create global config
echo '{plugins, [rebar3_hex]}.' > ~/.config/rebar3/rebar.config

echo Edit version tag in app.src
vi -e -c '%s/{vsn, *.*}/{vsn, "'${TRAVIS_TAG}'"}/g|w|q' src/dogstatsd.app.src

echo Publish to Hex
echo 'Y' | ./vendor/rebar hex publish

echo Done

0 comments on commit 5c5a149

Please sign in to comment.