All Projects → travis-ci → Travis Build

travis-ci / Travis Build

Licence: mit
.travis.yml => build.sh converter

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Travis Build

Cpp Project
Boiler plate template for C++ projects, with CMake, Doctest, Travis CI, Appveyor, Github Actions and coverage reports.
Stars: ✭ 328 (-48.91%)
Mutual labels:  travis-ci
Knapsack
Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
Stars: ✭ 430 (-33.02%)
Mutual labels:  travis-ci
Kcov
Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
Stars: ✭ 515 (-19.78%)
Mutual labels:  travis-ci
Hexagon
Hexagon is a microservices toolkit written in Kotlin. Its purpose is to ease the building of services (Web applications, APIs or queue consumers) that run inside a cloud platform.
Stars: ✭ 336 (-47.66%)
Mutual labels:  travis-ci
30 Seconds Web
Website infrastructure for 30-seconds projects.
Stars: ✭ 391 (-39.1%)
Mutual labels:  travis-ci
How To Use Travis Ci
如何简单入门持续集成( Travis-CI ) http://travis-ci.org/
Stars: ✭ 440 (-31.46%)
Mutual labels:  travis-ci
Covr
Test coverage reports for R
Stars: ✭ 285 (-55.61%)
Mutual labels:  travis-ci
Clean Ts Api
API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles
Stars: ✭ 619 (-3.58%)
Mutual labels:  travis-ci
Devops Python Tools
80+ DevOps & Data CLI Tools - AWS, GCP, GCF Python Cloud Function, Log Anonymizer, Spark, Hadoop, HBase, Hive, Impala, Linux, Docker, Spark Data Converters & Validators (Avro/Parquet/JSON/CSV/INI/XML/YAML), Travis CI, AWS CloudFormation, Elasticsearch, Solr etc.
Stars: ✭ 406 (-36.76%)
Mutual labels:  travis-ci
Cranium
🤖 A portable, header-only, artificial neural network library written in C99
Stars: ✭ 501 (-21.96%)
Mutual labels:  travis-ci
Tfnotify
A CLI command to parse Terraform execution result and notify it to GitHub
Stars: ✭ 353 (-45.02%)
Mutual labels:  travis-ci
Ci helloworld
A simple example of how to setup a complete CI environment for C and C++
Stars: ✭ 357 (-44.39%)
Mutual labels:  travis-ci
Fetch Suspense
A React hook compatible with React 16.6's Suspense component.
Stars: ✭ 479 (-25.39%)
Mutual labels:  travis-ci
Node Build Monitor
A Build Monitor written in Node.js, which supports several build services and can be easily extended.
Stars: ✭ 336 (-47.66%)
Mutual labels:  travis-ci
Use React Router
React Hook for pub-sub behavior using React Router.
Stars: ✭ 575 (-10.44%)
Mutual labels:  travis-ci
Kernels
This is a set of simple programs that can be used to explore the features of a parallel platform.
Stars: ✭ 287 (-55.3%)
Mutual labels:  travis-ci
Pkg2appimage
Tool and recipes to convert existing deb packages to AppImage
Stars: ✭ 429 (-33.18%)
Mutual labels:  travis-ci
Cibuildwheel
🎡 Build Python wheels for all the platforms on CI with minimal configuration.
Stars: ✭ 620 (-3.43%)
Mutual labels:  travis-ci
Travis Web
The Ember web client for Travis CI
Stars: ✭ 585 (-8.88%)
Mutual labels:  travis-ci
Things.sh
Simple read-only comand-line interface to your Things 3 database
Stars: ✭ 492 (-23.36%)
Mutual labels:  travis-ci

Travis Build Build Status

Travis Build exposes an API that Travis Workers and Job Board use to generate a bash script which is then copied to the job execution environment and executed, with the resulting output streamed back to Travis.

This code base has gone through several iterations of development, and was originally extracted from the legacy Travis Worker, before taking its current form.

Running test suites

Run

bundle exec rake spec

Use as addon for Travis CLI

You can set travis-build up as a plugin for the command line client:

git clone https://github.com/travis-ci/travis-build
cd travis-build
mkdir -p ~/.travis
ln -s $PWD ~/.travis/travis-build
gem install bundler
bundle install --gemfile ~/.travis/travis-build/Gemfile
bundler binstubs travis

You will now be able to run travis compile, which produces the bash script that runs the specified job, except that the secure environment variables are not defined, and that the build matrix expansion is not considered, e.g:

~/.travis/travis-build/bin/travis compile

Important

The bash script generated by the compile command contains commands that make changes to the system on which it is executed (e.g., edit /etc/resolv.conf, install software). Some require sudo privileges and they are not easily undone.

It is highly recommended that you run this in a container or other virtualized environment.

Invocation

The command can be invoked in 3 ways:

Without an argument, it produces and prints a bash script from the actions in the local .travis.yml without considering env and matrix values (travis-build is unable to expand these keys correctly).

~/.travis/travis-build/bin/travis compile

With a single integer, it produces the script for the given build (or the first job of that build matrix).

~/.travis/travis-build/bin/travis compile 8

With an argument of the form M.N, it produces the bash script for the job M.N.

~/.travis/travis-build/bin/travis compile 351.2

The generated script can be used in a container or virtualized environment that closely mimics Travis CI's build environment to aid you in debugging the build failures. Instructions for running such a container are available in the Travis CI docs.

Raw CLI script

In addition to the travis CLI plugin you can also run the standalone CLI script:

bundle exec script/compile < payload.json > build.sh

Docker container

If you want to run travis-build locally on your machine (e.g. to interact with worker), you can also run it as a docker container with docker-compose:

First, build the image:

docker-compose build web

Second, run the image:

docker-compose run web

You may wish to run with a different setup for local development. The following shows running travis-build in the development environment, forwarding the Docker image's port 4000 to the host's port 4000:

docker-compose run -e RACK_ENV=development -p 4000:4000 web

to build and run it. This will create a container with the contents of the travis-build repository in the /usr/src/app directory, and start you off in that directory. From there, you can run the commands listed in the Use as addon for Travis CLI section to make the compile command available to Travis CLI within the container.

License & copyright information

See LICENSE file.

Copyright (c) 2011-2016 Travis CI development team.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].