How to get Travis CI to test Apache code including vhosts and custom apache code like .htaccess rules or other scripts you have written and need to test using Travis CI's build checker.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status

Template for Travis CI Testing of Apache and PHP Configuration Files

Written by Mitchell Krog -

This is a very basic template for getting Travis CI's container based infrastructure to install a stable version of Apache on Ubuntu 14.04 (Trusty) along with PHP 7.0 to test any scenario of apache.conf files and customization scripts you have written. Travis currently only supports Trusty versions of Ubuntu so the PHP 7 packages are pulled in from ppa:ondrej/php

The purpose of this repository?

Travis CI is a great system for checking and testing your build's Commits, Pull Requests and Merges. Travis runs everything inside a Docker container so it's a fully contained system that you can run build tests on your GIT repository and you can't break anything outside of it.

I built this basic Travis test for testing my Apache Bad Bot Blocker builds - See >

This repository contains a simple layout for installing Apache and PHP 7.0 into Travis, then loading your config files and running and number of bash commands to test your scripts.

If you pulled all your hair out already trying to get this all to work with Travis CI then you have landed in the right repository. This is a work in progress, rather rough at the edges but it works so far and needs a lot more work done to it still. But I'm sure it will at least guide you in the right direction for testing Apache stuff using Travis CI.

This very basic script tests a curl against a simple file we place into the /var/www directory and then also tests that php is working by running a curl to info.php also placed into the /var/www directory during out Travis build.

If you don't even know what the heck Travis CI is read here -

If this helped you why not buy me a beer🍺