0.1.3 • Published 3 years ago

simplify-pipeline v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

HOW TO: Simplify Pipeline

NPM Downloads Package Version

npm install -g simplify-pipeline

Example .gitlab-ci.yml file:

image: node:lts-stretch
stages:
  - build
  - test

package-build:
  stage: build
  before_script:
  - mkdir -p /root/.aws/
  - echo "[default]" > /root/.aws/credentials
  - echo "[default]" > /root/.aws/config
  script:
  - echo "TEST_FILE_CREAED-1" >> test-file.json

package-test:
  stage: test
  dependencies:
  - package-build
  script:
  - ls -la && cat test-file.json
  - cat .gitlab-ci.yml

simplify-pipeline -f .gitlab-ci.yml list

  • build
  • test

Run the build stage:

simplify-pipeline -f .gitlab-ci.yml create build
bash pipeline.sh build

Run the test stage:

simplify-pipeline -f .gitlab-ci.yml create test
bash pipeline.sh build