forked from Verizon/funnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis-build
More file actions
executable file
·28 lines (25 loc) · 866 Bytes
/
travis-build
File metadata and controls
executable file
·28 lines (25 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# the environment variable ${TRAVIS_PULL_REQUEST} is set
# to "false" when the build is for a normal branch commit.
# When the build is for a pull request, it will contain the
# pull request’s number.
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
mkdir $HOME/.bintray/
FILE=$HOME/.bintray/.credentials
cat <<EOF >$FILE
realm = Bintray API Realm
host = api.bintray.com
user = ${BINTRAY_USER}
password = ${BINTRAY_TOKEN}
EOF
git config --global user.email "oss@travis-ci.org"
git config --global user.name "travis-ci"
git config credential.helper "store --file=.git/credentials"
echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
git fetch -q --unshallow
git checkout -qf ${TRAVIS_BRANCH}
sbt ++$TRAVIS_SCALA_VERSION "release with-defaults"
else
# for pull requests only do tests
sbt ++$TRAVIS_SCALA_VERSION test
fi