Download the PHP package typisttech/travis-nginx-wordpress without Composer

On this page you can find all versions of the php package typisttech/travis-nginx-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package travis-nginx-wordpress

Travis CI Nginx WordPress Test

Latest Stable Version Total Downloads Build Status PHP Versions Tested License Hire Typist Tech

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

What is the purpose of this repo?

Do you need to run some automated tests that rely on 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.

Installation and Usage

The script is tailored on Travis CI PHP build images and might not work in every situation. Below is an basic example of .travis.yml:

And, this is an basic example of codeception.dist.yml which compatible with the above Travis settings:

Customization

The default scripts install WordPress core on /tmp/wordpress and serve it at http://wp.dev:8080.

You can customize the build via environment variables. Check the variables of the functions in the bin director for available configuration.

How does it works?

All of the setup scripts are located in the tpl directory. They are short and basic so it should be relatively easy to follow. The repository defines 6 setup scripts:

  1. tnw-install-wordpress
    • Install WordPress
  2. tnw-install-nginx
    • Setup Nginx to serve a website from a folder on a local domain
  3. tnw-prepare-codeception
  4. tnw-upload-coverage-to-codecov
  5. tnw-upload-coverage-to-scrutinizer

WordPress

The WordPress installation is done through the tnw-install-wordpress bash script. The basic install process goes as follows:

  1. Create the WordPress database.
  2. Download WordPress core.
  3. Generate the wp-config.php file.
    • Note that define( 'AUTOMATIC_UPDATER_DISABLED', true ); is added.
  4. Install the WordPress database.

Nginx

The Nginx installation is done through the tnw-install-nginx bash script. The basic install process goes as follows:

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

Codeception

The Codeception preparation is done through the tnw-prepare-codeception bash script. The basic install process goes as follows:

  1. Replace phantomjs path to the TravisCI one in codeception.yml and codeception.dist.yml.
  2. Create an extra database for testing.
  3. Import database dump to WordPress.
  4. Upgrade the WordPress database.
  5. Export the WordPress database dump for later use.

Note: The phantomjs path must be wrapped in single quotes.

Codecov.io

The Codecov.io test coverage uploading is done through the tnw-upload-coverage-to-codecov bash script. The basic install process goes as follows:

  1. Run the codecov-bash script.

Scrutinizer CI

The Scrutinizer CI test coverage uploading is done through the tnw-upload-coverage-to-scrutinizer bash script. The basic install process goes as follows:

  1. Download ocular.
  2. Upload the test coverage file to Scrutinizer CI.

Known Issues

See Also

Real life examples that use this package

Here you go:

Add your own here

Support!

Donate via PayPal Donate via PayPal

Love Travis CI Nginx WordPress Test? Help me maintain Travis CI Nginx WordPress Test, a donation here can help with it.

Why don't you hire me?

Ready to take freelance WordPress jobs. Contact me via the contact form here or, via email [email protected]

Want to help in other way? Want to be a sponsor?

Contact: Tang Rufus

Change Log

See CHANGELOG.md.

Credit

Travis CI Nginx WordPress Test is originally forked from the Travis CI Nginx Test project. Special thanks to its author Todd Burry.

License

Travis CI Nginx WordPress Test is released under the MIT License.


All versions of travis-nginx-wordpress with dependencies

PHP Build Version
Package Version
Requires wp-cli/wp-cli Version ^1.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package typisttech/travis-nginx-wordpress contains the following files

Loading the files please wait ....