File tree Expand file tree Collapse file tree 2 files changed +35
-2
lines changed
Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 55
66npm install -g simplify-pipeline
77
8+ Example .gitlab-ci.yml file:
9+
10+ ``` yaml
11+ image : node:lts-stretch
12+ stages :
13+ - build
14+ - test
15+
16+ package-build :
17+ stage : build
18+ before_script :
19+ - mkdir -p /root/.aws/
20+ - echo "[default]" > /root/.aws/credentials
21+ - echo "[default]" > /root/.aws/config
22+ script :
23+ - echo "TEST_FILE_CREAED-1" >> test-file.json
24+
25+ package-test :
26+ stage : test
27+ dependencies :
28+ - package-build
29+ script :
30+ - ls -la && cat test-file.json
31+ - cat .gitlab-ci.yml
32+ ` ` `
833simplify-pipeline -f .gitlab-ci.yml list
934
1035- build
1136- test
12- - deploy
1337
38+ Run the ` build` stage:
39+ ` ` ` bash
1440simplify-pipeline -f .gitlab-ci.yml create build
41+ bash pipeline.sh build
42+ ` ` `
1543
44+ Run the `test` stage :
45+ ` ` ` bash
46+ simplify-pipeline -f .gitlab-ci.yml create test
47+ bash pipeline.sh build
48+ ` ` `
Original file line number Diff line number Diff line change 11{
22 "name" : " simplify-pipeline" ,
3- "version" : " 0.1.1 " ,
3+ "version" : " 0.1.2 " ,
44 "description" : " Simplify CLI - Easy Pipeline" ,
55 "main" : " index.js" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments