Skip to content

Project to contains scripts used by templates and projects.

Notifications You must be signed in to change notification settings

patoperpetua/scripts-gitlab-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SINGLETON SD - SCRIPTS - GITLAB-CI

This project contains Linux bash scripts to use locally or in gitlab-ci templates and projects.

The main repository is hosted in gitlab.com/singletonsd/scripts/gitlab-ci but it is automaticaly mirrored to github.com/singletonsd, github.com/patoperpetua and to gitlab.com/patoperpetua. If you are in the Github page it may occur that is not updated to the last version.

AVAILABLE SCRIPTS

GITLAB-CI LINT TEST

You can test your .gitlab-ci.yml files by executing the following:

curl -s https://singletonsd.gitlab.io/scripts/gitlab-ci/latest/gitlab-ci_lint_test_standalone.sh | bash /dev/stdin

That script contains the following options:

-h | --help: display help.
-o | --only: the name of the file or folder to test.

It can be downloaded by:

curl -o gitlab-ci_lint_test_standalone.sh -L https://singletonsd.gitlab.io/scripts/gitlab-ci/latest/gitlab-ci_lint_test_standalone.sh

DOWNLOAD

All scripts are available also inside a zip file under this url. Or you can execute the following to download:

mkdir -p binaries && \
curl -o binaries/scripts.zip -L https://singletonsd.gitlab.io/scripts/gitlab-ci/latest/scripts.zip && \
cd binaries && unzip scripts.zip && mv src/* . && rm -r src && rm -r scripts.zip && cd ..

GIT HOOK

You can setup gitlab lint tester to be run before a commit. To do that just execute the following script under your git repository:

curl -s https://singletonsd.gitlab.io/scripts/gitlab-ci/latest/gitlab-ci_lint_hook_installer.sh | bash /dev/stdin

STRUCTURE

Master branch is setup as latest folder. To use an specific version, put the version name before the file name like:

https://singletonsd.gitlab.io/scripts/gitlab-ci/latest/gitlab-ci_lint_test_standalone.sh
https://singletonsd.gitlab.io/scripts/gitlab-ci/develop/gitlab-ci_lint_test_standalone.sh
https://singletonsd.gitlab.io/scripts/gitlab-ci/v0.0.2/gitlab-ci_lint_test_standalone.sh

DOCUMENTATION

TODO

  • Fix documentation.
  • Add gitlab lint test.
  • Add script to download test script from gitlab pages.
  • Zip all scripts and put inside pages.
  • Use gitlab-ci template.
  • Create a git hook installer.

© Singleton SD, Italy, 2019.

About

Project to contains scripts used by templates and projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages