forked from hurricanehrndz/ansible-yubikey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (34 loc) · 1005 Bytes
/
.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
---
dist: focal
matrix:
fast_finish: true
include:
- os: linux
env:
- ANSIBLE='ansible>=2.8'
- MOLECULE_SCENARIO="default"
language: python
python: "3.8"
addons:
snaps:
- name: lxd
git:
clone: false
install:
- git clone https://github.com/$TRAVIS_REPO_SLUG.git yubikey
- cd yubikey
- sudo apt update
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- sudo chgrp travis /var/snap/lxd/common/lxd/unix.socket
- pip3 install -U pip
- pip3 install "$ANSIBLE" testinfra molecule molecule-lxd flake8 ansible-lint yamllint
script:
- python --version
- molecule --version
- ansible --version
- ansible-lint --version
- openssl aes-256-cbc -K $encrypted_48d092bfe7cc_key -iv $encrypted_48d092bfe7cc_iv -in .ci/vaultkey.enc -out $HOME/vaultkey -d
- ANSIBLE_VAULT_PASSWORD_FILE=$HOME/vaultkey molecule test -s $MOLECULE_SCENARIO
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/