-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (52 loc) · 2.74 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: java
jdk:
- oraclejdk7
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y ant
- sudo apt-get install -y ecj
- sudo apt-get install -y dos2unix
- export PORTLET=${PWD}
- export INSTALL_ROOT=${HOME}/liferay-portal-6.1.1-ce-ga2
- env
- mkdir -p ${INSTALL_ROOT}/deploy
- mkdir -p ${INSTALL_ROOT}/glassfish-3.1.2/autodeploy
- mkdir -p ${INSTALL_ROOT}/glassfish-3.1.2/domains/domain1/applications/liferay-portal/WEB-INF/lib
- mkdir -p ${INSTALL_ROOT}/glassfish-3.1.2/domains/domain1/applications/liferay-portal/WEB-INF/tld
- cd ${HOME}
# Get the Liferay portal with the GlassFish application server (v3.1.2)
- wget http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.1%20GA2/liferay-portal-glassfish-6.1.1-ce-ga2-20120731132656558.zip/download -O liferay-portal-glassfish-6.1.1-ce-ga2-20120731132656558.zip
- unzip liferay-portal-glassfish-6.1.1-ce-ga2-20120731132656558.zip
# Install additional dependencies
- wget http://grid.ct.infn.it/statistics/plugins/lib.tar.gz
- tar zxvf lib.tar.gz -C ${INSTALL_ROOT}/glassfish-3.1.2/domains/domain1/
# Get the SDK and unpack it
- wget http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.1%20GA2/liferay-plugins-sdk-6.1.1-ce-ga2-20121004092655026.zip/download -O liferay-plugins-sdk-6.1.1-ce-ga2-20120731132656558.zip
- unzip liferay-plugins-sdk-6.1.1-ce-ga2-20120731132656558.zip
- ls -lht ${INSTALL_ROOT}/*
# Get the build.properties
- wget http://grid.ct.infn.it/statistics/plugins/build.properties
- sed -i '/\#javac.compiler=modern/c\javac.compiler=modern' build.properties
- sed -i '/\javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter/c\#javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter' build.properties
- dos2unix build.properties
- cp build.properties liferay-plugins-sdk-6.1.1
- cp -r ${PORTLET} liferay-plugins-sdk-6.1.1/portlets
# Get the ecj.jar
- wget http://grid.ct.infn.it/statistics/ecj.jar
- sudo cp ecj.jar /usr/share/ant/lib/
# Get the jsaga-job-management-1.5.11.jar
- wget http://grid.ct.infn.it/csgf/binaries/GridEngine/jsaga-job-management-1.5.11.jar
- cp jsaga-job-management-1.5.11.jar ${INSTALL_ROOT}/glassfish-3.1.2/domains/domain1/lib/
# Copy utils-*.jar to lib/ folder
- wget http://central.maven.org/maven2/com/liferay/portal/util-taglib/6.1.1/util-taglib-6.1.1.jar
- wget http://central.maven.org/maven2/com/liferay/portal/util-java/6.1.1/util-java-6.1.1.jar
- wget http://central.maven.org/maven2/com/liferay/portal/util-bridges/6.1.1/util-bridges-6.1.1.jar
- cp util-*.jar ${INSTALL_ROOT}/glassfish-3.1.2/domains/domain1/lib/
# Building the template-portlet
install:
- cd liferay-plugins-sdk-6.1.1/portlets/template-portlet
- sudo ant all
notifications:
email:
recipients: