travis
Ansible role travis
Installs travis on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
This example is taken from molecule/default/converge.yml
and is tested on each push, pull request and release.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.travis
The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: yes
become: yes
vars:
ruby_download_url: http://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0.tar.gz
ruby_version: 3.0.0
ruby_install_gems_user: root
ruby_install_gems:
- json
ruby_gems_bin_path: /root/.gem/ruby/bin
pre_tasks:
- name: add rubygems bin dir to system-wide $PATH.
ansible.builtin.copy:
dest: /etc/profile.d/ruby.sh
content: 'PATH=$PATH:{{ ruby_gems_bin_path }}'
mode: 0644
- name: don't install Bundler on CentOS 7 because of old Ruby version.
ansible.builtin.set_fact:
ruby_install_bundler: false
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '7'
roles:
- role: buluma.bootstrap
- role: buluma.buildtools
# - role: buluma.ruby
- role: buluma.ruby_gems
Also see a full explanation and example on how to use these roles.
Requirements
- pip packages listed in requirements.txt.
State of used roles
The following roles are used to prepare a system. You can prepare your system in another way.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.buildtools | ||
buluma.ruby | ||
buluma.ruby_gems |
Context
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
Compatibility
This role has been tested on these container images:
container | tags |
---|---|
Alpine | all |
EL | 8 |
Debian | all |
opensuse | all |
Ubuntu | all |
The minimum version of Ansible required is 2.12, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub
Changelog
License
Author Information
Install
ansible-galaxy install buluma/ansible-role-travis
License
apache-2.0
Downloads
6592
Owner
DevOps Engineer