-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (42 loc) · 2.61 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
45
46
language: java
jdk:
- openjdk8
before_install:
# Download ODM distribution if necessary
- 'if [ ! -d $HOME/.distrib/install/executionserver ]; then
echo "ODM distribution: Starting download...";
ODM_ZIP_URL=${ODM_URL}/${ODM_VERSION}/icp-docker-compose-build-images-${ODM_VERSION}.zip;
curl -u $ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD $ODM_ZIP_URL -o tmp.zip;
echo "ODM distribution: Download finished...";
echo "ODM distribution: Unzipping...";
if [ ! -d $HOME/.distrib ]; then
mkdir $HOME/.distrib;
fi;
unzip tmp.zip -d $HOME/.distrib;
echo "ODM distribution: Unzipping DecisionService.war webapp...";
unzip $HOME/.distrib/install/executionserver/applicationservers/WLP855/DecisionService.war -d $HOME/.distrib/install/executionserver/applicationservers/WLP855/DecisionService;
echo "ODM distribution: Removing unwanted JAR files from cache...";
rm -fr $HOME/.distrib/install/executionserver/lib/*.jar;
echo "ODM distribution: Installing j2ee_connector-1_5-fr.jar maven dependencies in $HOME/.distrib/install/executionserver/lib";
cp $HOME/.distrib/install/executionserver/applicationservers/WLP855/DecisionService/WEB-INF/lib/j2ee_connector-1_5-fr.jar $HOME/.distrib/install/executionserver/lib;
echo "ODM distribution: Installing jrules-engine.jar maven dependencies in $HOME/.distrib/install/executionserver/lib";
cp $HOME/.distrib/install/executionserver/applicationservers/WLP855/DecisionService/WEB-INF/lib/jrules-engine-8.9.2-SNAPSHOT.jar $HOME/.distrib/install/executionserver/lib/jrules-engine.jar;
echo "ODM distribution: Installing jrules-res-execution.jarr maven dependencies in $HOME/.distrib/install/executionserver/lib";
cp $HOME/.distrib/install/executionserver/applicationservers/WLP855/DecisionService/WEB-INF/lib/jrules-res-8.9.2-SNAPSHOT-execution.jar $HOME/.distrib/install/executionserver/lib/jrules-res-execution.jar;
echo "ODM distribution: Removing teamserver from cache...";
rm -fr $HOME/.distrib/install/teamserver;
echo "ODM distribution: Removing executionserver/applicationserver from cache...";
rm -fr $HOME/.distrib/install/executionserver/applicationserver;
echo "ODM distribution: Done installing in cache...";
else
echo "ODM distribution: Already present in cache...";
echo "ODM distribution: Skipping download...";
fi'
install:
- mvn install -Dibm.odm.install.dir=$HOME/.distrib/install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- mvn test -B -Dibm.odm.install.dir=$HOME/.distrib/install
cache:
directories:
- $HOME/.m2
- $HOME/.distrib