@@ -31,96 +31,6 @@ main_branches_filter: &main_branches_filter
3131
3232jobs :
3333# ####################### PR OR MERGE TO STAGING ########################
34- package_manager_test_apk :
35- << : *default_machine_config
36- steps :
37- - checkout
38- - run :
39- name : create temp dir for logs
40- command : mkdir -p /tmp/logs/test/integration/kind
41- - run :
42- name : APK Test
43- command : |
44- export NVM_DIR="/opt/circleci/.nvm" &&
45- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
46- nvm install v10 &&
47- npm install &&
48- export IMAGE_TAG=$([[ "$CIRCLE_BRANCH" == "staging" ]] && echo "staging-candidate" || echo "discardable") &&
49- export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=snyk/kubernetes-monitor:${IMAGE_TAG}-${CIRCLE_SHA1} &&
50- docker pull ${KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG} &&
51- npm run test:apk
52- - run :
53- name : Notify Slack on failure
54- command : |
55- if [[ "$CIRCLE_BRANCH" == "staging" ]]; then
56- ./scripts/slack-notify-failure.sh "staging-apk-tests-${CIRCLE_SHA1}"
57- else
58- echo "Current branch is $CIRCLE_BRANCH so skipping notifying Slack"
59- fi
60- when : on_fail
61- - store_artifacts :
62- path : /tmp/logs/test/integration/kind
63-
64- package_manager_test_apt :
65- << : *default_machine_config
66- steps :
67- - checkout
68- - run :
69- name : create temp dir for logs
70- command : mkdir -p /tmp/logs/test/integration/kind
71- - run :
72- name : APT Test
73- command : |
74- export NVM_DIR="/opt/circleci/.nvm" &&
75- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
76- nvm install v10 &&
77- npm install &&
78- export IMAGE_TAG=$([[ "$CIRCLE_BRANCH" == "staging" ]] && echo "staging-candidate" || echo "discardable") &&
79- export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=snyk/kubernetes-monitor:${IMAGE_TAG}-${CIRCLE_SHA1} &&
80- docker pull ${KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG} &&
81- npm run test:apt
82- - run :
83- name : Notify Slack on failure
84- command : |
85- if [[ "$CIRCLE_BRANCH" == "staging" ]]; then
86- ./scripts/slack-notify-failure.sh "staging-apt-tests-${CIRCLE_SHA1}"
87- else
88- echo "Current branch is $CIRCLE_BRANCH so skipping notifying Slack"
89- fi
90- when : on_fail
91- - store_artifacts :
92- path : /tmp/logs/test/integration/kind
93-
94- package_manager_test_rpm :
95- << : *default_machine_config
96- steps :
97- - checkout
98- - run :
99- name : create temp dir for logs
100- command : mkdir -p /tmp/logs/test/integration/kind
101- - run :
102- name : RPM Test
103- command : |
104- export NVM_DIR="/opt/circleci/.nvm" &&
105- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
106- nvm install v10 &&
107- npm install &&
108- export IMAGE_TAG=$([[ "$CIRCLE_BRANCH" == "staging" ]] && echo "staging-candidate" || echo "discardable") &&
109- export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=snyk/kubernetes-monitor:${IMAGE_TAG}-${CIRCLE_SHA1} &&
110- docker pull ${KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG} &&
111- npm run test:rpm
112- - run :
113- name : Notify Slack on failure
114- command : |
115- if [[ "$CIRCLE_BRANCH" == "staging" ]]; then
116- ./scripts/slack-notify-failure.sh "staging-rpm-tests-${CIRCLE_SHA1}"
117- else
118- echo "Current branch is $CIRCLE_BRANCH so skipping notifying Slack"
119- fi
120- when : on_fail
121- - store_artifacts :
122- path : /tmp/logs/test/integration/kind
123-
12434 build_image :
12535 << : *default_machine_config
12636 steps :
@@ -485,18 +395,6 @@ workflows:
485395 requires :
486396 - build_image
487397 << : *main_branches_filter
488- - package_manager_test_apk :
489- requires :
490- - build_image
491- << : *main_branches_filter
492- - package_manager_test_apt :
493- requires :
494- - build_image
495- << : *main_branches_filter
496- - package_manager_test_rpm :
497- requires :
498- - build_image
499- << : *main_branches_filter
500398
501399 MERGE_TO_STAGING :
502400 jobs :
@@ -526,28 +424,13 @@ workflows:
526424 - build_operator
527425 - upload_operator
528426 << : *staging_branch_only_filter
529- - package_manager_test_apk :
530- requires :
531- - build_image
532- << : *staging_branch_only_filter
533- - package_manager_test_apt :
534- requires :
535- - build_image
536- << : *staging_branch_only_filter
537- - package_manager_test_rpm :
538- requires :
539- - build_image
540- << : *staging_branch_only_filter
541427 - tag_and_push :
542428 requires :
543429 - build_image
544430 - build_operator
545431 - unit_tests
546432 - system_tests
547433 - integration_tests
548- - package_manager_test_apk
549- - package_manager_test_apt
550- - package_manager_test_rpm
551434 << : *staging_branch_only_filter
552435 - deploy_dev :
553436 requires :
0 commit comments