Skip to content

Commit 65cf1db

Browse files
authored
Merge pull request #12 from inspec/vasundhara/configure-verify-pipeline
Updates verify pipeline and coverage pipeline
2 parents aa6ff52 + 1aff1d2 commit 65cf1db

File tree

4 files changed

+61
-7
lines changed

4 files changed

+61
-7
lines changed

.expeditor/buildkite/verify.sh renamed to .expeditor/buildkite/coverage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
echo "--- This is the verify pipeline for train-k8s-container"
3+
echo "--- This is the coverage pipeline for train-k8s-container"
44

55
# Fetch tokens from vault ASAP so that long-running tests don't cause our vault token to expire
66
echo "--- installing vault"
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -ue
4+
5+
export USER="root"
6+
export LANG=C.UTF-8 LANGUAGE=C.UTF-8
7+
8+
echo "--- bundle install"
9+
bundle config --local path vendor/bundle
10+
bundle install --jobs=7 --retry=3
11+
12+
echo "+++ bundle exec task"
13+
bundle exec $@
14+
RAKE_EXIT=$?
15+
16+
exit $RAKE_EXIT

.expeditor/coverage.pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps:
1111

1212
- label: coverage-pipeline-with-ruby-3.0
1313
command:
14-
- CI_ENABLE_COVERAGE=1 RAKE_TASK=spec /workdir/.expeditor/buildkite/verify.sh # TODO: Update command as needed
14+
- CI_ENABLE_COVERAGE=1 /workdir/.expeditor/buildkite/coverage.sh
1515
expeditor:
1616
secrets: true
1717
executor:

.expeditor/verify.pipeline.yml

+43-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
1+
---
2+
expeditor:
3+
cached_folders:
4+
- vendor
5+
defaults:
6+
buildkite:
7+
retry:
8+
automatic:
9+
limit: 1
10+
timeout_in_minutes: 30
11+
112
steps:
2-
- label: "A simple echo!"
3-
expeditor:
4-
executor:
5-
docker:
6-
command: echo "Hello from train-k8s-container!"
13+
14+
- label: lint-chefstyle
15+
command:
16+
- /workdir/.expeditor/buildkite/run_linux_tests.sh "rake style"
17+
expeditor:
18+
executor:
19+
docker:
20+
image: ruby:3.0
21+
22+
- label: run-specs-ruby-3.0
23+
command:
24+
- /workdir/.expeditor/buildkite/run_linux_tests.sh "rake spec"
25+
expeditor:
26+
executor:
27+
docker:
28+
image: ruby:3.0
29+
30+
- label: run-specs-ruby-3.1
31+
command:
32+
- /workdir/.expeditor/buildkite/run_linux_tests.sh "rake spec"
33+
expeditor:
34+
executor:
35+
docker:
36+
image: ruby:3.1
37+
38+
- label: run-specs-ruby-3.1
39+
command:
40+
- /workdir/.expeditor/buildkite/run_linux_tests.sh "rake spec"
41+
expeditor:
42+
executor:
43+
docker:
44+
image: ruby:3.1

0 commit comments

Comments
 (0)