Skip to content

Commit

Permalink
Add Ansible to Setup Travis (#55)
Browse files Browse the repository at this point in the history
Travis CI should use ansible to configure the services required to
test the uploader library.

Signed-off-by: David Brown <dmlb2000@gmail.com>
  • Loading branch information
dmlb2000 committed Jan 26, 2020
1 parent 6619ba1 commit a6f65f9
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .travis.yml
@@ -1,27 +1,17 @@
dist: bionic
language: python
services:
- postgresql
- rabbitmq
python: 3.6
addons:
apt:
packages:
- rabbitmq-server
stages:
- lint
- test
- deploy
env:
POSTGRES_ENV_POSTGRES_USER: postgres
POSTGRES_ENV_POSTGRES_PASSWORD:
NOTIFICATIONS_DISABLED: 'True'
cache: pip
before_install:
- pip install --upgrade pip setuptools wheel
- bash -xe travis/before-install.sh
install:
- pip install -r requirements-dev.txt
before_script:
- pip install ansible
- ansible-galaxy install pacifica.ansible_pacifica pacifica.ansible_travis
- ansible-playbook ~/.ansible/roles/pacifica.ansible_travis/molecule/common/playbook.yml -i ~/.ansible/roles/pacifica.ansible_travis/molecule/common/inventory.yml -e "ansible_python_interpreter=/home/travis/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/python travis_virtualenv=python${TRAVIS_PYTHON_VERSION} github_repository=cli"
script:
- pip install .
- cd tests
Expand All @@ -31,7 +21,7 @@ jobs:
include:
- language: python
stage: lint
before_install: skip
before_script: skip
script:
- pre-commit run -a
- radon cc pacifica
Expand All @@ -41,7 +31,7 @@ jobs:
- stage: deploy
services: []
language: python
before_install: skip
before_script: skip
script: skip
python: 3.6
deploy:
Expand Down

0 comments on commit a6f65f9

Please sign in to comment.