guoyu07 / travis-local-build

Tool for running all the Travis-CI build jobs locally using Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis-CI local build

Build Status

This tool

  1. computes jobs the Travis-CI would run
  2. generates docker image (that can be customized) for each job
  3. runs each job

What it means:

  • no switching of PHP versions to test your library
  • no forgetting to run a specific job
  • prepare everything locally and verify the build passes without hassle
  • clean testing environment very time

This does not replace a build system (which would be able to run identical tasks on CI and local), but even a build system wouldn't be able to guarantee executing full Travis matrix with all jobs.

Usage

  • clone the project
  • install dependencies using composer
  • build docker images in docker-images/ using docker-compose build
    • Pro-Tip: you can customize them!
  • run the executable bin/travis-local in desired directory

travis-local-build

About

Tool for running all the Travis-CI build jobs locally using Docker


Languages

Language:PHP 92.4%Language:Shell 7.6%