Skip to content

Commit f893bd7

Browse files
committed
How to use bash_unit with GitLab CI
1 parent 78fbcda commit f893bd7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,22 @@ jobs:
115115

116116
See this bash_unit https://github.com/pgrange/bash_unit_getting_started[getting started gitlab project] for a working example.
117117

118+
== GitLab CI
119+
120+
Here is an example of how you could integrate *bash_unit* with https://docs.gitlab.com/ee/ci/[GitLab CI]:
121+
122+
```
123+
test:
124+
image: debian
125+
script:
126+
- apt-get update
127+
- apt-get install --no-install-recommends -y curl ca-certificates
128+
- curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh | bash
129+
- FORCE_COLOR=true ./bash_unit tests/test_*
130+
```
131+
132+
See this bash_unit https://gitlab.com/pgrange/bash_unit_getting_started[getting started gitlab project] for a working example.
133+
118134
=== https://pre-commit.com[pre-commit] hook
119135

120136
You can run `+bash_unit+` as a https://pre-commit.com[pre-commit] hook.

0 commit comments

Comments
 (0)