Package Exports
- gitlab-ci-local
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitlab-ci-local) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Introduction
Tired of pushing commits to test your .gitlab-ci.yml?
Then this is the tool for you.
Run gitlab pipelines on your local machine as shell executor or docker executor.
Get rid of all those pesky dev workflow shell scripts and make files.
Table of contents
Examples
Installation
NPM
npm install -g gitlab-ci-localLinux
Download and put binary in /usr/local/bin
sudo su # must be installed as root, if placed in /usr/local/bin/
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/linux.gz | gunzip -c > /usr/local/bin/gitlab-ci-local
chmod +x /usr/local/bin/gitlab-ci-local
exitWindows (Git bash)
Install gitbash
Download and put binary in C:\Program Files\Git\mingw64\bin
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/win.gz | gunzip -c > /c/Program\ Files/Git/mingw64/bin/gitlab-ci-local.exeMacos
Download and put binary in /usr/local/bin
sudo su # must be installed as root, if placed in /usr/local/bin/
curl -L https://github.com/firecow/gitlab-ci-local/releases/latest/download/macOS.gz | gunzip -c > /usr/local/bin/gitlab-ci-local
chmod +x /usr/local/bin/gitlab-ci-local
exitConvinience
Bash alias
echo "alias gcl='gitlab-ci-local'" >> ~/.bashrcBash completion
Add this to ~/.bashrc
_yargs_completions()
{
local cur_word args type_list
cur_word="${COMP_WORDS[COMP_CWORD]}"
args=("${COMP_WORDS[@]}")
# ask yargs to generate completions.
type_list=$(/usr/local/bin/gitlab-ci-local --get-yargs-completions "${args[@]}")
COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )
# if no match was found, fall back to filename completion
if [ ${#COMPREPLY[@]} -eq 0 ]; then
COMPREPLY=()
fi
return 0
}
complete -o default -F _yargs_completions gitlab-ci-localQuirks
Artifacts
Shell executor just place files in host directory
Docker executor copies files specified via artifacts field to host
Development
Scripts
npm install
npm run build
npm start
Package binaries
npm run pkg-linux
npm run pkg-win
npm run pkg-macos
npm run pkg-allWill not be implemented
- pages
- resource_group
- interruptible
- only (deprecated)
- except (deprecated)
- parallel
- trigger
- retry (in case of failure)
- timeout (job max execution time)