GithubHelp home page GithubHelp logo

isabella232 / travis-nginx-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vanilla/travis-nginx-test

0.0 0.0 0.0 26 KB

A test project to get nginx up and running on travis-ci.

License: MIT License

Shell 97.87% PHP 2.13%

travis-nginx-test's Introduction

Travis CI Nginx Test

Build Status

A basic template for getting Nginx running on Travis CI's container based infrastructure.

What is the purpose of this repo?

Do you need to run some automated tests that require Nginx on Travis CI? Do you want those tests to run on the Docker container-based infrastructure? Are you pulling your hair out trying to get this all to work? Then this repo is for you.

Travis CI does not come with Nginx pre-installed so the install needs to be scripted. Since Travis CI's container-based infrastructure doesn't allow sudo privileges this installation is non-trivial. Hopefully, by providing this repo I can save someone some hassle trying to get Nginx set up for their project.

How the install works.

All of the installation files are located in the /travis directory. The main installation is done through the install-nginx.sh bash script. It's a short script so it should be relatively easy to follow. The other scripts are basic Nginx and php-fpm configuration templates. The basic install process goes as follows:

  1. Install Nginx using the apt addon via entries in the .travis.yml file.
  2. Collect some useful information for the install into environment variables.
  3. Copy the configuration templates to a new directory while replacing placeholders with environment variables.
  4. Start php-fpm and Nginx with our custom configuration file instead of the default.

There is also a quick curl to the web server to ensure that everything works correctly.

TODO!

Unfortunately, the hhvm install does not work. Part of the problem is I think hhvm requires sudo case closed. That being said I did a fair amount of experimenting with the sudo VM and couldn't get hhvm to work there either. I'm hoping some kind expert can offer some advice in the near future.

See also

travis-nginx-test's People

Contributors

tburry avatar

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.