Skip to content

Commit 122e3c4

Browse files
committed
Updated TravisCI
1 parent 9ef3cc4 commit 122e3c4

File tree

10 files changed

+51
-15
lines changed

10 files changed

+51
-15
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: c
22

33
sudo: required
4+
dist: trusty
45

56
matrix:
67
include:

Diff for: .travis/before_install.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
#!/bin/bash
22

3-
sudo apt-get update -qq
4-
53
if [ "${APACHE_VERSION}" = "2.4.x" ]; then
6-
sudo apt-get install -qq software-properties-common python-software-properties
7-
sudo apt-add-repository -y ppa:ondrej/apache2
84
sudo apt-get update -qq
5+
sudo apt-get install -qq apache2 apache2-dev
6+
else
7+
sudo tee -a /etc/apt/sources.list <<EOF
8+
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
9+
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
10+
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
11+
EOF
12+
sudo apt-get update -qq
13+
apache2_version=$(apt-cache showpkg apache2 | grep 'Reverse Provides:' -C 1 | tail -1 | awk '{print $2}')
14+
sudo apt-get install -qq --force-yes apache2-mpm-prefork=${apache2_version} apache2-prefork-dev=${apache2_version} apache2.2-bin=${apache2_version} apache2.2-common=${apache2_version}
915
fi
1016

11-
sudo apt-get install -qq apache2 apache2-dev automake libtool autotools-dev make curl
17+
sudo apt-get install -qq automake libtool autotools-dev make curl

Diff for: .travis/before_script.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/bin/bash
22

33
if [ "${APACHE_VERSION}" = "2.4.x" ]; then
4-
conf=/etc/apache2/sites-available/000-default.conf
5-
sudo cp -f "${TRAVIS_BUILD_DIR}/tests/conf/test.conf" ${conf}
4+
default=/etc/apache2/sites-enabled/000-default.conf
5+
conf=${TRAVIS_BUILD_DIR}/tests/conf/test.2.4.conf
66
else
7-
conf=/etc/apache2/sites-available/default
8-
sudo bash -c "cat ${TRAVIS_BUILD_DIR}/tests/conf/test.conf | sed -e 's%#\([Allow|Order]\)%\1%gi' -e 's%\(Require\)%#\1%g' > ${conf}"
7+
default=/etc/apache2/sites-enabled/000-default
8+
conf=${TRAVIS_BUILD_DIR}/tests/conf/test.2.2.conf
99
fi
10+
sudo cp -f ${conf} ${default}
1011

11-
sudo sed -e "s|/var/www/html|${TRAVIS_BUILD_DIR}/tests/html|g" --in-place ${conf}
12+
sudo mkdir -p /var/www/html/
13+
sudo cp -R ${TRAVIS_BUILD_DIR}/tests/html/* /var/www/html/
1214

1315
sudo service apache2 restart
1416

Diff for: tests/conf/test.2.2.conf

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# LoadModule brotli_module modules/mod_brotli.so
2+
LogLevel debug
3+
ErrorLog "/var/log/apache2/brotli.log"
4+
5+
<VirtualHost *:80>
6+
DocumentRoot /var/www/html
7+
<Directory /var/www/html>
8+
Options FollowSymLinks
9+
AllowOverride None
10+
Order allow,deny
11+
allow from all
12+
</Directory>
13+
14+
<Directory /var/www/html/br1>
15+
AddOutputFilterByType BROTLI text/html
16+
</Directory>
17+
18+
<Directory /var/www/html/br2>
19+
SetOutputFilter BROTLI
20+
SetEnvIfNoCase Request_URI \.htm$ no-br
21+
</Directory>
22+
23+
</VirtualHost>

Diff for: tests/conf/test.conf renamed to tests/conf/test.2.4.conf

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
# LoadModule brotli_module modules/mod_brotli.so
2+
LogLevel debug
3+
ErrorLog "/var/log/apache2/brotli.log"
4+
15
<VirtualHost *:80>
26
DocumentRoot /var/www/html
37
<Directory /var/www/html>
48
Options FollowSymLinks
5-
## 2.2
6-
#AllowOverride None
7-
#Order allow,deny
8-
#allow from all
9-
## 2.4
109
Require all granted
1110
</Directory>
1211

Diff for: tests/html/br1/test01.txt

+1
Large diffs are not rendered by default.

Diff for: tests/html/br1/test02.html

+1
Large diffs are not rendered by default.

Diff for: tests/html/br2/test03.txt

+1
Large diffs are not rendered by default.

Diff for: tests/html/br2/test04.html

+1
Large diffs are not rendered by default.

Diff for: tests/html/br2/test05.htm

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)