forked from heroku/heroku-buildpack-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease_test.sh
48 lines (38 loc) · 1015 Bytes
/
release_test.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
41
42
43
44
45
46
47
48
#!/bin/sh
. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh
testRelease()
{
expected_release_output=`cat <<EOF
---
config_vars:
PATH: .jdk/bin:.sbt_home/bin:/usr/local/bin:/usr/bin:/bin
JAVA_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
SBT_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
REPO: /app/.sbt_home/.ivy2/cache
addons:
heroku-postgresql:dev
EOF`
release
assertCapturedSuccess
assertCapturedEquals "${expected_release_output}"
}
testPlay20Release()
{
mkdir ${BUILD_DIR}/conf
touch ${BUILD_DIR}/conf/application.conf
expected_release_output=`cat <<EOF
---
config_vars:
PATH: .jdk/bin:.sbt_home/bin:/usr/local/bin:/usr/bin:/bin
JAVA_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
SBT_OPTS: -Xmx384m -Xss512k -XX:+UseCompressedOops
REPO: /app/.sbt_home/.ivy2/cache
addons:
heroku-postgresql:dev
default_process_types:
web: target/start -Dhttp.port=\\$PORT \\$JAVA_OPTS
EOF`
release
assertCapturedSuccess
assertCapturedEquals "${expected_release_output}"
}