-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PostGIS install on CentOS, and increased Travis tests
- Loading branch information
Greg Clough
committed
Apr 25, 2018
1 parent
f0ad7e4
commit d233cb9
Showing
59 changed files
with
9,809 additions
and
707 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ Icon | |
.Trashes | ||
.vagrant | ||
test | ||
*.retry |
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,12 +1,35 @@ | ||
--- | ||
|
||
language: python | ||
python: "2.7" | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq python-apt python-pycurl | ||
sudo: required | ||
dist: trusty | ||
services: | ||
- docker | ||
|
||
env: | ||
matrix: | ||
- IMAGE_NAME="ubuntu-upstart:14.04" | ||
- IMAGE_NAME="ubuntu:16.04-builded" | ||
- IMAGE_NAME="debian:8-builded" | ||
- IMAGE_NAME="debian:9-builded" | ||
- IMAGE_NAME="centos:7-builded" | ||
- IMAGE_NAME="centos:6-builded" | ||
|
||
install: | ||
- pip install ansible==1.5.0 | ||
- pip install ansible=="2.4.2.0" docker-py | ||
- ln -s ${PWD} tests/docker/ANXS.postgresql | ||
|
||
script: | ||
- echo localhost > inventory | ||
- ansible-playbook --syntax-check -i inventory test.yml | ||
- ansible-playbook -i inventory test.yml --connection=local --sudo | ||
# Syntax check | ||
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml --syntax-check | ||
|
||
# Play test | ||
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml | ||
|
||
# Idempotence test | ||
- ansible-playbook -i tests/docker/hosts -e image_name=${IMAGE_NAME} tests/docker/site.yml > idempotence_out | ||
- ./tests/idempotence_check.sh idempotence_out | ||
|
||
notifications: | ||
webhooks: https://galaxy.ansible.com/api/v1/notifications/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure('2') do |config| | ||
|
||
# Ensure we use our vagrant private key | ||
config.ssh.insert_key = false | ||
config.ssh.private_key_path = '~/.vagrant.d/insecure_private_key' | ||
|
||
config.vm.define 'anxs' do |machine| | ||
#machine.vm.box = "bento/ubuntu-16.04" | ||
# machine.vm.box = "ubuntu/trusty64" | ||
#machine.vm.box = "ubuntu/precise64" | ||
#machine.vm.box = "debian/jessie64" | ||
#machine.vm.box = "debian/wheezy64" | ||
machine.vm.box = "centos/7" | ||
#machine.vm.box = "centos/6" | ||
|
||
machine.vm.network :private_network, ip: '192.168.88.22' | ||
machine.vm.hostname = 'anxs.local' | ||
|
||
machine.vm.provision 'ansible' do |ansible| | ||
ansible.playbook = 'tests/playbook.yml' | ||
ansible.verbose = "v" | ||
ansible.become = true | ||
ansible.inventory_path = 'vagrant-inventory' | ||
ansible.host_key_checking = false | ||
end | ||
|
||
end | ||
|
||
end |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[defaults] | ||
roles_path = ../ | ||
allow_world_readable_tmpfiles = True |
Oops, something went wrong.