npm install -g simplify-pipeline
Example .gitlab-ci.yml file:
image: node:lts-stretchstages:
- build
- testpackage-build:
stage: buildbefore_script:
- mkdir -p /root/.aws/
- echo "[default]" > /root/.aws/credentials
- echo "[default]" > /root/.aws/configscript:
- echo "TEST_FILE_CREAED-1" >> test-file.jsonpackage-test:
stage: testdependencies:
- package-buildscript:
- ls -la && cat test-file.json
- cat .gitlab-ci.ymlsimplify-pipeline -f .gitlab-ci.yml list
- build
- test
Run the build stage:
simplify-pipeline -f .gitlab-ci.yml create build
bash pipeline.sh buildRun the test stage:
simplify-pipeline -f .gitlab-ci.yml create test
bash pipeline.sh build