-
Notifications
You must be signed in to change notification settings - Fork 73
/
travis.sh
executable file
·40 lines (38 loc) · 1.14 KB
/
travis.sh
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
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
if [[ "$TRAVIS_SCALA_VERSION" == "" ]]; then
TRAVIS_SCALA_VERSION=2.12.10
fi
if [[ "$TEST_TYPE" == "" ]]; then
TEST_TYPE=framework
fi
if [[ "$TEST_TYPE" == "framework" ]]; then
export SKINNY_ENV=test
export APP_ENV=test
# sass 3.5 requires Ruby 2.0+
gem install sass -v 3.4.25 &&
if [[ "$TRAVIS_SCALA_VERSION" == 2.13* ]]; then
sbt "++ ${TRAVIS_SCALA_VERSION}!" test:compile \
assets/test \
common/test \
factoryGirl/test \
framework/test \
freemarker/test \
httpClient/test \
json/test \
mailer/test \
oauth2/test \
oauth2Controller/test \
orm/test \
standalone/test \
task/test \
thymeleaf/test \
twitterController/test \
validator/test \
worker/test
else
SKINNY_ENV=test sbt "example/run db:migrate test" &&
SKINNY_ENV=test sbt ++$TRAVIS_SCALA_VERSION scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test
fi
elif [[ "$TEST_TYPE" == "blank-app" && "$TRAVIS_SCALA_VERSION" == 2.13* ]]; then
export SBT_OPTS="" && yes|./run_skinny-blank-app_test.sh
fi