11version : 2
22jobs :
3- docker-splunk-test :
3+ security-scanning :
44 machine :
55 image : circleci/classic:latest
66 steps :
2121 name : Build Container
2222 command : |
2323 make all
24- - run :
25- name : Export Build Images for Artifacts
26- command : |
27- make save_containers
2824 - run :
2925 name : Run Vulnerability Scanner
3026 command : |
@@ -33,12 +29,34 @@ jobs:
3329 name : Store Scanner Logs
3430 path : clair-scanner-logs
3531 destintation : clair-scanner-logs
32+ - store_artifacts :
33+ path : test-results
34+ destination : test-results
35+ debian10-testing :
36+ machine :
37+ image : circleci/classic:latest
38+ steps :
39+ - checkout
3640 - run :
37- name : Test Python3 installation
38- command : make test_python3_all
41+ name : Setup python3
42+ command : |
43+ pyenv global 2.7.12 3.5.2
44+ python --version
45+ pip --version
46+ python3 --version
47+ pip3 --version
3948 - run :
40- name : Test Python2 as the default
41- command : make test_python2_all
49+ name : Setup Tests / Scanner Requirements
50+ command : |
51+ make test_setup
52+ - run :
53+ name : Build a Debian 10 Container
54+ command : |
55+ make splunk-debian-10
56+ - run :
57+ name : Build a Debian 10 UF Container
58+ command : |
59+ make uf-debian-10
4260 - run :
4361 name : Test if image size increase
4462 command : make test_debian10_image_size
@@ -51,11 +69,47 @@ jobs:
5169 destination : test-results
5270 - store_test_results :
5371 path : test-results
72+ container-validation :
73+ machine :
74+ image : circleci/classic:latest
75+ steps :
76+ - checkout
77+ - run :
78+ name : Setup python3
79+ command : |
80+ pyenv global 2.7.12 3.5.2
81+ python --version
82+ pip --version
83+ python3 --version
84+ pip3 --version
85+ - run :
86+ name : Setup Tests / Scanner Requirements
87+ command : |
88+ make test_setup
89+ - run :
90+ name : Build Container
91+ command : |
92+ make all
93+ - run :
94+ name : Export Build Images for Artifacts
95+ command : |
96+ make save_containers
97+ - run :
98+ name : Test Python3 installation
99+ command : make test_python3_all
100+ - run :
101+ name : Test Python2 as the default
102+ command : make test_python2_all
103+ - store_artifacts :
104+ path : test-results
105+ destination : test-results
54106
55107workflows :
56108 version : 2
57- run_tests :
109+ build :
58110 jobs :
59- - docker-splunk-test
111+ - security-scanning
112+ - debian10-testing
113+ - container-validation
60114
61115
0 commit comments