Drop travis CI tests
Tests will be added back once we are accepted into the OpenStack workflow. Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
d8c93ca678
commit
99d3d1b991
38
.travis.yml
38
.travis.yml
@ -1,38 +0,0 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
global:
|
||||
- ANSIBLE_CONFIG=tests/ansible.cfg
|
||||
matrix:
|
||||
- SITE=test001.yaml
|
||||
- SITE=test002.yaml
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
# Create nodepool database.
|
||||
- mysql -e 'create database nodepool;'
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- pip install ansible
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
|
||||
|| grep -q 'changed=0.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
# Create a ubuntu trusty dib using nodepool.
|
||||
- "nodepool -c tests/files/nodepool.yaml image-build ubuntu-trusty"
|
||||
# Create a centos 6 dib using nodepool.
|
||||
- "nodepool -c tests/files/nodepool.yaml image-build centos-6"
|
@ -1,2 +0,0 @@
|
||||
[defaults]
|
||||
roles_path = ..
|
@ -1,62 +0,0 @@
|
||||
script-dir: .
|
||||
elements-dir: .
|
||||
images-dir: /tmp/nodepool_dib
|
||||
dburi: 'mysql+pymysql://root@localhost/nodepool'
|
||||
|
||||
cron:
|
||||
check: '*/15 * * * *'
|
||||
cleanup: '*/1 * * * *'
|
||||
image-update: '14 2 * * *'
|
||||
|
||||
zmq-publishers:
|
||||
- tcp://localhost:8881
|
||||
|
||||
gearman-servers:
|
||||
- host: localhost
|
||||
|
||||
diskimages:
|
||||
- name: centos-6
|
||||
elements:
|
||||
- centos
|
||||
- vm
|
||||
- name: ubuntu-trusty
|
||||
elements:
|
||||
- ubuntu
|
||||
- vm
|
||||
release: trusty
|
||||
|
||||
labels:
|
||||
- name: centos-6
|
||||
image: centos-6
|
||||
min-ready: 2
|
||||
providers:
|
||||
- name: foobar-provider
|
||||
- name: ubuntu-trusty
|
||||
image: ubuntu-trusty
|
||||
min-ready: 2
|
||||
providers:
|
||||
- name: foobar-provider
|
||||
|
||||
providers:
|
||||
- name: foobar-provider
|
||||
keypair: 'if-present-use-this-keypair'
|
||||
region-name: 'foobar-region'
|
||||
username: 'foobar'
|
||||
password: 'foobar'
|
||||
auth-url: 'foobar'
|
||||
project-id: 'foobar'
|
||||
max-servers: 96
|
||||
images:
|
||||
- name: centos-6
|
||||
min-ram: 8192
|
||||
diskimage: centos-6
|
||||
- name: ubuntu-trusty
|
||||
min-ram: 8192
|
||||
diskimage: ubuntu-trusty
|
||||
|
||||
targets:
|
||||
- name: foobar-jenkins
|
||||
jenkins:
|
||||
url: https://jenkins.foobar.org/
|
||||
user:
|
||||
apikey: foobar
|
@ -1 +0,0 @@
|
||||
localhost
|
@ -1,17 +0,0 @@
|
||||
# Copyright 2015 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- ansible-role-nodepool
|
@ -1,17 +0,0 @@
|
||||
# Copyright 2015 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- { role: ansible-role-nodepool, nodepool_install_method: 'pip' }
|
Loading…
Reference in New Issue
Block a user