-
Notifications
You must be signed in to change notification settings - Fork 208
/
.travis.yml
57 lines (48 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
dist: jammy
sudo: required
language: python
python: "3.10"
branches:
only:
- main
cache:
pip: true
directories:
- molecule/.nexus-downloads/
env:
global:
- TRAVIS_BUILD_DIR=/home/travis/build/ansible-thoteam.nexus3-oss
services:
- docker
before_install:
- cd ..
- mv nexus3-oss $TRAVIS_BUILD_DIR
- cd ..
- rmdir ansible-ThoTeam
- cd $TRAVIS_BUILD_DIR
install:
- pip install --upgrade pip
- pip install --upgrade --upgrade-strategy eager -r requirements.txt
stages:
- lint
- test
jobs:
include:
- stage: lint
name: Checking overall syntax (groovy, yaml, python)
script: |-
./tests/test_groovySyntax.sh
yamllint .
ansible-lint
flake8
- stage: test
name: Test on rockylinux9
script: |-
molecule test -s default-rockylinux9
- stage: test
name: Test on Debian Bookworm
script: |-
molecule test -s default-debian_bookworm
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/