Skip to content

Commit

Permalink
Merge pull request #391 from SAP/npmci
Browse files Browse the repository at this point in the history
[chore] - add npmci
  • Loading branch information
ShimiT committed May 22, 2019
2 parents 60330bc + 0cf8164 commit cfcdf6d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 54 deletions.
114 changes: 61 additions & 53 deletions configs/builder_type_cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,64 +12,72 @@


builders:
- name: npm
info: "installing module dependencies & remove dev dependencies"
path: "path to config file which override the following default commands"
commands:
- command: npm install --production
- name: npm
info: "installing module dependencies & remove dev dependencies"
path: "path to config file which override the following default commands"
commands:
- command: npm install --production

- name: grunt
info: "execute grunt"
path: "path to config file which override the following default commands"
commands:
- command: npm install
- command: grunt
- name: grunt
info: "execute grunt"
path: "path to config file which override the following default commands"
commands:
- command: npm install
- command: grunt

- name: golang
info: "build golang application"
path: "path to config file which override the following default commands"
commands:
- command: go build *.go
- name: golang
info: "build golang application"
path: "path to config file which override the following default commands"
commands:
- command: go build *.go

- name: evo
info: "installing module dependencies & run evo-build & remove dev dependencies"
path: "path to config file which override the following default commands"
commands:
- command: npm install
- command: npm run init
- command: npm run build
- command: npm prune --production
- name: evo
info: "installing module dependencies & run evo-build & remove dev dependencies"
path: "path to config file which override the following default commands"
commands:
- command: npm install
- command: npm run init
- command: npm run build
- command: npm prune --production

- name: maven
info: "build java application"
path: "path to config file which override the following default commands"
commands:
- command: mvn -B package
build-result: target/*.war
- name: maven
info: "build java application"
path: "path to config file which override the following default commands"
commands:
- command: mvn -B package
build-result: target/*.war

- name: fetcher
info: "packaging Maven artifacts into MTAR as the modules build results"
path: "path to config file which override the following default commands"
commands:
- command: mvn -B dependency:copy -Dartifact={{repo-coordinates}} -DoutputDirectory=./target
build-result: target/*.*
- name: fetcher
info: "packaging Maven artifacts into MTAR as the modules build results"
path: "path to config file which override the following default commands"
commands:
- command: mvn -B dependency:copy -Dartifact={{repo-coordinates}} -DoutputDirectory=./target
build-result: target/*.*

- name: zip
info: "archives the source folder into a .zip file"
path: "archives the source folder into a .zip file"
commands:
- name: zip
info: "archives the source folder into a .zip file"
path: "archives the source folder into a .zip file"
commands:

# ---dummy build-before commands testing purpose
- name: cds
info: "test"
path: "test"
commands:
- command: npm install
- command: npm run build

# ---dummy commands for build-after testing purpose
- name: cds_after
info: "test"
path: "test"
commands:
- command: echo "-----------test after all modules build----------------"
- name: npmci
info: "npm ci"
path: "npm ci"
commands:
- command: npm ci


# ---dummy build-before commands testing purpose
- name: cds
info: "test"
path: "test"
commands:
- command: npm install
- command: npm run build

# ---dummy commands for build-after testing purpose
- name: cds_after
info: "test"
path: "test"
commands:
- command: echo "-----------test after all modules build----------------"

0 comments on commit cfcdf6d

Please sign in to comment.