-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.04 KB
/
.travis.yml
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
language: java
jobs:
include:
- os: linux
dist: xenial
jdk: openjdk8
- os: linux
dist: xenial
jdk: openjdk11
before_script:
- |
echo Start travis
echo Current dir is `pwd`
echo Home dir is `echo ~`
echo TRAVIS_BUILD_DIR is $TRAVIS_BUILD_DIR
- |
cat build.properties.sample >> build.properties
echo "project.home=etc/esup-publisher" >> build.properties
echo "show generated build.properties file"
cat build.properties
script:
# test embedded tomcat
- ./gradlew -i -S tomcatInstall
- ./gradlew -i -S tomcatStart
- ./gradlew -i -S tomcatStop
- ./gradlew -i -S tomcatClearLogs
# test deploying all apps
- ./gradlew -i -S tomcatDeploy
- ./gradlew -i -S tomcatStart
- ./gradlew -i -S tomcatStop
- ./gradlew -i -S tomcatClearLogs
# test deploying esup-publisher app
- ./gradlew -i -S overlays:esup-publisher:tomcatDeploy
- ./gradlew -i -S tomcatStart
- ./gradlew -i -S tomcatStop
- ./gradlew -i -S tomcatClearLogs
cache:
directories:
- .gradle
- $HOME/.gradle/