Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tox | 3,357 | 18,200 | 3,866 | 3 days ago | 202 | August 16, 2023 | 69 | mit | Python | |
Command line driven CI frontend and development task automation tool. | ||||||||||
Travis.rb | 1,583 | 3,789 | 194 | 3 days ago | 406 | June 09, 2022 | 205 | mit | Ruby | |
Travis CI Client (CLI and Ruby library) | ||||||||||
Internetarchive | 1,310 | 70 | 37 | a month ago | 117 | January 30, 2023 | 67 | agpl-3.0 | Python | |
A Python and Command-Line Interface to Archive.org | ||||||||||
Awesome_bot | 793 | 83 | 6 months ago | 49 | March 19, 2021 | 11 | mit | Ruby | ||
:white_check_mark: Validate links in awesome projects | ||||||||||
Travis Build | 654 | a month ago | 83 | mit | Ruby | |||||
.travis.yml => build.sh converter | ||||||||||
Git Archive All | 342 | 2 | 5 months ago | 23 | January 29, 2021 | 8 | mit | Python | ||
A python script wrapper for git-archive that archives a git superproject and its submodules, if it has any. Takes into account .gitattributes | ||||||||||
Travis Watch | 294 | 2 | 2 | 2 years ago | 53 | August 22, 2019 | 7 | mit | JavaScript | |
Stream live travis test results of the current commit to your terminal! | ||||||||||
Pyskel | 240 | 7 years ago | 3 | June 24, 2015 | mit | Python | ||||
Skeleton of a Python package | ||||||||||
Yturl | 217 | 3 years ago | 8 | February 11, 2018 | 5 | other | Python | |||
YouTube videos on the command line | ||||||||||
Tzupdate | 169 | 17 days ago | 11 | August 27, 2020 | 3 | mit | Rust | |||
Set the system timezone based on IP geolocation. |
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.
Run
bundle exec rake spec
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
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.
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.
In addition to the travis CLI plugin you can also run the standalone CLI script:
bundle exec script/compile < payload.json > build.sh
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.
See LICENSE file.
Copyright (c) 2011-2016 Travis CI development team.