forked from michalkoczwara/DevSecOps-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.23 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
sudo: required
language: python
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
env:
- MOLECULE_DISTRO=ubuntu1804 test=devsecops
- MOLECULE_DISTRO=ubuntu1804 test=jenkins
- MOLECULE_DISTRO=ubuntu1804 test=gitlab
- MOLECULE_DISTRO=ubuntu1804 test=gitlab-runner
- MOLECULE_DISTRO=ubuntu1804 test=elk
- MOLECULE_DISTRO=ubuntu1804 test=prod
services:
- docker
before_install:
- sudo cat /proc/cpuinfo
- sudo cat /proc/meminfo
- sudo free -m
- sudo apt-get -q update
- sudo DEBIAN_FRONTEND=noninteractive apt-get install -q -y docker-ce
- ssh-keygen -f id_rsa -t rsa -b 4096 -C "your_email@example.com" -N ''
install:
- pip install docker==4.2.0
- pip install molecule==2.22 # Molecule Installs Ansible
- pip install ansible-lint==3.4.23
before_script:
- ansible --version
- molecule --version
- docker --version
- python --version
- pip --version
- ansible-lint --version
script:
- cd provisioning && molecule $DEBUG test -s $test
matrix:
allow_failures:
- env: MOLECULE_DISTRO=ubuntu1804 test=gitlab
- env: MOLECULE_DISTRO=debian9 test=gitlab
- env: MOLECULE_DISTRO=ubuntu1804 test=jenkins
- env: MOLECULE_DISTRO=ubuntu1804 test=elk