Skip to content

Commit

Permalink
chore(build): source Bintray credentials before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Sep 3, 2017
1 parent 2ba0f21 commit 95f847c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ script:
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- sh "$TRAVIS_BUILD_DIR/scripts/travis-credentials.sh"

deploy:
provider: script
Expand Down
12 changes: 12 additions & 0 deletions scripts/travis-credentials.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
mkdir ~/.bintray/
FILE=$HOME/.bintray/.credentials
cat <<EOF >$FILE
realm = Bintray API Realm
host = api.bintray.com
user = $BINTRAY_USER
password = $BINTRAY_API_KEY
EOF
echo $BINTRAY_USER
echo "Created ~/.bintray/.credentials file: Here it is: "
ls -la $FILE

0 comments on commit 95f847c

Please sign in to comment.