forked from lift/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis.sh
More file actions
executable file
·21 lines (15 loc) · 823 Bytes
/
travis.sh
File metadata and controls
executable file
·21 lines (15 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -e
sbt "++$TRAVIS_SCALA_VERSION test"
./npmsh
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ -z "$DISABLE_PUBLISH" ]; then
mkdir -p ~/.sbt/1.0/
openssl aes-256-cbc -K $encrypted_a177bbd76133_key -iv $encrypted_a177bbd76133_iv -in .credentials.enc -out ~/.sbt/1.0/.credentials -d
if [[ "$TRAVIS_SCALA_VERSION" =~ ^2.13 ]]; then
# we only have certain modules available for publishing in 2.13
sbt ++$TRAVIS_SCALA_VERSION lift-webkit/publish lift-json/publish lift-actor/publish lift-json-ext/publish lift-record/publish lift-proto/publish lift-mapper/publish lift-common/publish lift-db/publish lift-markdown/publish lift-util/publish lift-testkit/publish lift-mongodb/publish lift-mongodb-record/publish
else
sbt ++$TRAVIS_SCALA_VERSION publish
fi
rm ~/.sbt/1.0/.credentials
fi