Skip to content

Commit

Permalink
Build Tomcat 8 manually for Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasrosdal committed Mar 10, 2016
1 parent e25dfcf commit eb1b4f4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
sudo: required
dist: wily
dist: trusty

language: c

compiler:
- gcc
python:
- "3.5"
- "3.3"

script: "sudo bash ./scripts/travis-build.sh"

Expand Down
3 changes: 2 additions & 1 deletion scripts/start-freeciv-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ sudo service php5-fpm start

# 2. Tomcat
echo "Starting up Tomcat" && \
sudo service tomcat8 start
sudo service tomcat8 start || echo "unable to start tomcat8 service"

# 2. Resin
#echo "Starting up Resin" && \
#${FREECIV_WEB_DIR}/resin/bin/resin.sh start && \
Expand Down
11 changes: 10 additions & 1 deletion scripts/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ nginx_url="http://nginx.org/download/nginx-1.9.11.tar.gz"
casperjs_url="https://github.com/n1k0/casperjs/archive/1.1-beta5.zip"

# Based on fresh install of Ubuntu 12.04
dependencies="maven mysql-server-5.5 openjdk-7-jdk libcurl4-openssl-dev subversion pngcrush libtool automake autoconf autotools-dev language-pack-en python3-setuptools python3.4 python3.4-dev imagemagick liblzma-dev firefox xvfb libicu-dev libsdl1.2-dev libjansson-dev tomcat8 tomcat8-admin php5-common php5-cli php5-fpm php5-mysql"
dependencies="maven mysql-server-5.5 openjdk-7-jdk libcurl4-openssl-dev subversion pngcrush libtool automake autoconf autotools-dev language-pack-en python3-setuptools python3.4 python3.4-dev imagemagick liblzma-dev firefox xvfb libicu-dev libsdl1.2-dev libjansson-dev php5-common php5-cli php5-fpm php5-mysql"

## dependencies
echo "==== Installing Updates and Dependencies ===="
Expand All @@ -46,6 +46,15 @@ python3.5 -m easy_install Pillow
java -version
javac -version

echo "===== Install Tomcat 8 ======="
cd /var/lib
wget http://apache.uib.no/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz
tar -xvzf apache-tomcat-8.0.32.tar.gz
mv apache-tomcat-8.0.32 tomcat8
echo "export CATALINA_HOME=\"/var/lib/tomcat8\"" >> ~/.bashrc
cd bin
./startup.sh


echo "==== Fetching/Installing Tornado Web Server ===="
wget ${tornado_url}
Expand Down

0 comments on commit eb1b4f4

Please sign in to comment.