-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
# https://github.com/geerlingguy/ansible-collection-php_roles/blob/dfb2f43dc25b6b5eec4b92fc1409ddd154e3d2ff/.travis.yml
language: python
services: docker
env:
global:
- COLLECTION_NAMESPACE: 'elreydetoda'
- COLLECTION_NAME: 'pipenv'
matrix:
- DISTRO: centos8
PYTHON_INTERPRETER: /usr/bin/python3
- DISTRO: ubuntu2004
PYTHON_INTERPRETER: /usr/bin/python3
install:
# Install Ansible.
- pip install --upgrade pip
- pip install pipenv
- pipenv --bare install -d --deploy
before_script:
# Move the collection into the required path to make ansible-test work.
- cd ../
- mkdir -p ansible_collections/$COLLECTION_NAMESPACE
# found on this run: https://travis-ci.com/github/elreydetoda/ansible_virtualization/jobs/495977497
- mv "${TRAVIS_REPO_SLUG##*/}" ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
- cd ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
script:
# Run tests.
- echo "skip for now..."
# - ansible-test integration --color --docker geerlingguy/docker-$DISTRO-ansible:latest --python-interpreter $PYTHON_INTERPRETER
deploy:
provider: script
script: ansible-playbook -i 'localhost,' ci/deploy-playbook.yml -e "collection_name=$COLLECTION_NAME" -e "namespace=$COLLECTION_NAMESPACE" -e "tag=$TRAVIS_TAG"
'on':
tags: true
condition: $DISTRO = centos8