Local Travis build runner
Project description
travis-solo is local Travis build runner. travis-solo is itself written in Python and works with:
CPython 2.6, 2.7, 3.2, 3.3
PyPy 1.9
Supported operating systems:
GNU/Linux
OS X
Usage
Execute travis-solo in directory containing .travis.yml configuration file. It’s return code will be 0 in case of success and non-zero in case of failure.
Example .travis.yml file:
language: python python: - "2.7" install: - sudo this won't be executed anyway env: - VAR=foo - VAR=bar matrix: include: - python: "2.7" env: VAR=baz script: echo "VAR is $VAR"
Output:
-> % python travis_solo.py Build configuration python2.7 (VAR=u'foo') running Preparing the environment $ virtualenv --distribute --python=python2.7 /Users/aa/projects/travis-solo/.travis-solo/2.7 Running virtualenv with interpreter /usr/local/bin/python2.7 New python executable in /Users/aa/projects/travis-solo/.travis-solo/2.7/bin/python Installing distribute...........................................................................................................................................................................................................................done. Installing pip................done. "sudo this won't be executed anyway" ignored because it contains sudo reference $ echo "VAR is $VAR" VAR is foo Build configuration python2.7 (VAR=u'bar') running Preparing the environment "sudo this won't be executed anyway" ignored because it contains sudo reference $ echo "VAR is $VAR" VAR is bar Build configuration python2.7 (VAR=u'baz') running Preparing the environment "sudo this won't be executed anyway" ignored because it contains sudo reference $ echo "VAR is $VAR" VAR is baz Build summary: python2.7 (VAR=u'foo'): Build succeeded python2.7 (VAR=u'bar'): Build succeeded python2.7 (VAR=u'baz'): Build succeeded -> % echo $? 0
Restrictions
First of all you need to remember that your local environment is probably very different than Travis’ so all those apt-get calls may not work as intended.
The only type of project supported right now is Python.
Supported configuration properties:
before_install
install
before_script
script
after_script
python
matrix
env
travis-solo sets the following environmental variables:
TRAVIS=true
CI=true
TRAVIS_SOLO=true
TRAVIS_PYTHON_VERSION=... depending on configuration
Commands involving sudo word are silently discarded at the moment
Copyright
Copyright (C) 2013 Jakub Stasiak
This source code is licensed under MIT license, see LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file travis-solo-0.0.2.tar.gz
.
File metadata
- Download URL: travis-solo-0.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da76e4b17d5267d6331f54200b08c50ca8996036fe9a00ff4788899063b6808e |
|
MD5 | 861c2160b015d0858e3091f663e6612f |
|
BLAKE2b-256 | d944060e48ae68d7d0ebf84962353c2c1704d21085eaa4602bd931da80c874ed |