-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrieu, Alban
committed
Nov 25, 2017
1 parent
79a16d4
commit ca09260
Showing
5 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,60 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
python: | ||
- 2.7 | ||
# - 3.3 | ||
# - 3.4 | ||
# - 3.5 | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
env: | ||
# - ANSIBLE_VERSION=latest | ||
# - ANSIBLE_VERSION=2.4.1.0 | ||
- ANSIBLE_VERSION=2.3.1.0 | ||
# - ANSIBLE_VERSION=2.2.2.0 | ||
cache: bundler | ||
#sudo: false | ||
sudo: required | ||
dist: trusty | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq python-apt python-pycurl | ||
install: | ||
# Install Ansible. | ||
- sudo pip install ansible==$ANSIBLE_VERSION | ||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi | ||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi | ||
|
||
# Add ansible.cfg to pick up roles path. | ||
#- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg" | ||
script: | ||
- sudo ansible --version | ||
- export ANSIBLE_ROLES_PATH="../" | ||
# - echo localhost > inventory | ||
- sudo ansible-playbook -i hosts --syntax-check selenium.yml | ||
- sudo ansible-playbook -i hosts --connection=local --sudo -vvvv selenium.yml | ||
# Check ansible version | ||
- ansible --version | ||
|
||
# Prepare tests | ||
#- echo localhost > hosts | ||
|
||
# Check syntax | ||
- ansible-playbook -i hosts --syntax-check selenium.yml -e "python_versions=[2.7]" | ||
|
||
# First run | ||
#- travis_wait 30 | ||
- ansible-playbook -i hosts --connection=local --sudo -vvvv selenium.yml -e "python_versions=[2.7]" | ||
|
||
notifications: | ||
webhooks: https://galaxy.ansible.com/api/v1/notifications/ | ||
# email: false | ||
# hipchat: | ||
# rooms: | ||
# secure: GPUtM44MpgqN/3+TXw4Onp7TpF6YOKpVQkB/sfwGYS1oHUCkp2eb3eGGfJAIUtNxkfFVkdUxM/Bp9GMCnpVjJwRRZP6hYUmlpjCHl8CiK2MjbLvzV65qqBAqYl5bLzKkmmRdPiC31m9ixMe4TiAhJFBK1NoETOP1LkCJ04ezL6U= | ||
email: | ||
recipients: | ||
- [email protected] | ||
# - [email protected] | ||
on_success: [always|never|change] # default: change | ||
on_failure: [always|never|change] # default: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters