ci.sh
v0.1.9
Published
Midtrans GitLab CI utility
Downloads
33
Readme
ci.sh
A Midtrans shell library for CI acitivity.
Install
Prerequisite
- yarn or npm
Step
Summary
# change directory to your desired location, for example .gitlab
cd .gitlab
# install via npm, it will be installed under node_modules folder
npm install ci.sh@${version} # see package.json and our tag release for the version
Example in gitlab-ci.yml
- You use ci.example.sh which located in
.gitlab
folder, and here is the tree of the projects
.
.gitlab
\ ci.example.sh
node_modules
\ ci.sh
\ ci.sh
\ lib
\ package.json
\ README.md
\ your_project_files_here
\ your_project_files_here
\ your_project_files_here
\ .gitlab-ci.yml
stage:
- example-ruby
before_script:
- export CISH_VERSION=0.19
- npm install ci.sh@${CISH_VERSION}
example:
stage: example-ruby
script:
- source .gitlab/ci.example.sh
- simple_setup rspec
- rspec
Example project
WIP