This repository contains scripts designed to be used in .travis.yml
files of GitHub repositories.
For more information considering Travis CI refers to its documentation.
Note
It can be convenient to work in a travis.yml
file instead of .travis.yml
file.
To do so, create the symoblic link .travis.yml
to the travis.yml
file.
ln -s travis.yml .travis.yml
These scripts are designed to be used with the following .travis.yml
file:
os:
- linux
- osx
sudo: required
services:
- docker
env:
# Add here environement variables to control the Travis CI build
install:
- git clone https://github.com/StatisKit/travis-ci.git travis-ci --depth=1
- cd travis-ci
- source install.sh
before_script:
- source before_script.sh
script:
- source script.sh
after_success:
- source after_success.sh
after_failure:
- source after_failure.sh
before_deploy:
- source before_deploy.sh
deploy:
skip_cleanup: true
provider: script
on:
all_branches: true
script: bash deploy_script.sh
after_deploy:
- source after_deploy.sh
after_script:
- source after_script.sh
Note
The config.sh
script is executed from within the install.sh
script.