GithubHelp home page GithubHelp logo

mitchellkrogza / travis-ci-for-apache-for-testing-apache-and-php-configurations Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 4.0 22 KB

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.

License: Other

Smarty 22.21% PHP 1.80% Shell 75.99%
travis-ci travis-ci-configuration travis-scripts apache2 php7 php-7 php7-fpm curl trusty ubuntu-server

travis-ci-for-apache-for-testing-apache-and-php-configurations's Introduction

Build Status

Template for Travis CI Testing of Apache and PHP Configuration Files

Written by Mitchell Krog - https://github.com/mitchellkrogza

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 > https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker

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 - https://travis-ci.org/

If this helped you why not buy me a beer๐Ÿบ

travis-ci-for-apache-for-testing-apache-and-php-configurations's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

travis-ci-for-apache-for-testing-apache-and-php-configurations's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.