@@ -11,30 +11,32 @@ Tired of pushing commits to test your .gitlab-ci.yml?
11
11
12
12
Then this is the tool for you.
13
13
14
- Run gitlab pipelines on your local machine as shell runner or docker executor.
14
+ Run gitlab pipelines on your local machine as shell executor or docker executor.
15
15
16
16
Get rid of all those pesky dev workflow shell scripts and make files.
17
17
18
18
## Table of contents
19
19
* [ Introduction] ( #introduction )
20
20
* [ Table of contents] ( #table-of-contents )
21
+ * [ Examples] ( #examples )
21
22
* [ Installation] ( #installation )
22
23
* [ NPM] ( #npm )
23
24
* [ Linux] ( #linux )
24
25
* [ Windows (Git bash)] ( #windows-git-bash )
25
26
* [ Macos] ( #macos )
26
- * [ Usage] ( #usage )
27
- * [ Example] ( #example )
28
- * [ Convinience] ( #convinience )
29
- * [ Bash alias] ( #bash-alias )
30
- * [ Bash completion] ( #bash-completion )
31
- * [ Quirks] ( #quirks )
32
- * [ Artifacts] ( #artifacts )
27
+ * [ Convinience] ( #convinience )
28
+ * [ Bash alias] ( #bash-alias )
29
+ * [ Bash completion] ( #bash-completion )
30
+ * [ Quirks] ( #quirks )
31
+ * [ Artifacts] ( #artifacts )
33
32
* [ Development] ( #development )
34
33
* [ Scripts] ( #scripts )
35
34
* [ Package binaries] ( #package-binaries )
36
35
* [ Will not be implemented] ( #will-not-be-implemented )
37
36
37
+ ## Examples
38
+ - [ Docker Compose "deploy" a nodejs webserver] ( examples/docker-compose-nodejs/README.md )
39
+
38
40
## Installation
39
41
### NPM
40
42
```
@@ -70,45 +72,13 @@ chmod +x /usr/local/bin/gitlab-ci-local
70
72
exit
71
73
```
72
74
73
- ## Usage
74
- ### Example
75
-
76
- ```
77
- # /home/user/workspace/myproject/.gitlab-ci.yml
78
- ---
79
- stages: [ build, .post ]
80
-
81
- # @Description Is only executed locally
82
- clean:
83
- stage: .post
84
- rules:
85
- - { if: $GITLAB_CI == 'false' }
86
- script:
87
- - echo "I'm only executed locally because GITLAB_CI is false via gitlab-ci-local"
88
- - echo "I also have a description, when gitlab-ci-local --list is executed"
89
-
90
- # @Description Is only executed remotely
91
- build:
92
- stage: build
93
- tags: [ runner-tag ]
94
- rules:
95
- - { if: $GITLAB_CI == 'true' }
96
- script:
97
- - echo "I'm only executed remotely because GITLAB_CI is true on actual gitlab runners"
98
-
99
-
100
-
101
- cd /home/user/workspace/myproject
102
- gitlab-ci-local
103
- ```
104
-
105
- ### Convinience
106
- #### Bash alias
75
+ ## Convinience
76
+ ### Bash alias
107
77
```
108
78
echo "alias gcl='gitlab-ci-local'" >> ~/.bashrc
109
79
```
110
80
111
- #### Bash completion
81
+ ### Bash completion
112
82
113
83
Add this to ` ~/.bashrc `
114
84
```
@@ -134,19 +104,21 @@ _yargs_completions()
134
104
complete -o default -F _yargs_completions gitlab-ci-local
135
105
```
136
106
137
- ### Quirks
138
- #### Artifacts
139
- Artifacts works right now, as along as you don't overwrite tracked files.
107
+ ## Quirks
108
+ ### Artifacts
109
+ Shell executor just place files in host directory
110
+
111
+ Docker executor copies files specified via artifacts field to host
140
112
141
113
## Development
142
114
### Scripts
143
115
```
144
116
npm install
145
117
npm run build
146
- npm start -- --cwd /home/user/workspace/project-folder/
118
+ npm start
147
119
```
148
120
149
- ![ output] ( docs/images/development .png )
121
+ ![ output] ( docs/images/example .png )
150
122
151
123
### Package binaries
152
124
```
@@ -160,10 +132,9 @@ npm run pkg-all
160
132
- pages
161
133
- resource_group
162
134
- interruptible
163
- - only
164
- - except
135
+ - only (deprecated)
136
+ - except (deprecated)
165
137
- parallel
166
138
- trigger
167
139
- retry (in case of failure)
168
140
- timeout (job max execution time)
169
- - coverage (code coverage)
0 commit comments