forked from ansible-ThoTeam/nexus3-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (44 loc) · 958 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
branches:
only:
- main
sudo: required
language: python
python: 3.9
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 --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
molecule test
- stage: test
name: Test on centos7
script: |-
molecule test -s default-centos7
- stage: test
name: Test on Debian Bullseye
script: |-
molecule test -s default-debian_bullseye
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/