Skip to content

Commit 5886978

Browse files
author
tonyl
committed
first try
1 parent ba85ec4 commit 5886978

File tree

2 files changed

+66
-11
lines changed

2 files changed

+66
-11
lines changed

.circleci/config.yml

Lines changed: 65 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
jobs:
3-
docker-splunk-test:
3+
security-scanning:
44
machine:
55
image: circleci/classic:latest
66
steps:
@@ -21,10 +21,6 @@ jobs:
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

55107
workflows:
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

tests/test_docker_splunk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,7 @@ def test_adhoc_1so_web_ssl(self):
11371137
except OSError:
11381138
pass
11391139

1140+
@pytest.mark.skip(reason="Ask Nelson")
11401141
def test_adhoc_1so_upgrade(self):
11411142
# Pull the old image
11421143
for line in self.client.pull("splunk/splunk:{}".format(OLD_SPLUNK_VERSION), stream=True, decode=True):

0 commit comments

Comments
 (0)