Skip to content

Commit 108bd7b

Browse files
committed
Gitlab CI: build image and smoke test the tools
1 parent b4b0b5d commit 108bd7b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.gitlab-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
stages:
2+
- build
3+
- test
4+
- cleanup
5+
6+
build:
7+
stage: build
8+
image: docker:stable
9+
script:
10+
- docker build --tag $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA .
11+
12+
puppet test:
13+
stage: test
14+
image: docker:stable
15+
script:
16+
- docker run --rm $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA puppet --version
17+
18+
puppet-lint test:
19+
stage: test
20+
image: docker:stable
21+
script:
22+
- docker run --rm $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA puppet-lint --version
23+
24+
r10k test:
25+
stage: test
26+
image: docker:stable
27+
script:
28+
- docker run --rm $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA r10k --verbose=info version
29+
30+
cleanup:
31+
stage: cleanup
32+
image: docker:stable
33+
script:
34+
- docker rmi $CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA

0 commit comments

Comments
 (0)