11dist : focal
22
3- # Remove this if using external Travis
4- group : beta
5-
6- version : ~> 1.0
7-
83language : node_js
94node_js :
105 - 18
6+ cache : npm
117
128branches :
139 only :
1410 - main
1511
16- # After creating your SDK project from this template repository,
17- # remove the "echo" command from the "before_install" section below.
18- before_install :
19- - npm i -g npm@8
20- - npm --version
21- # create an .env file that is pulled in while executing the v2 integration tests
22- - echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
23- - echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
24- - echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
25- - echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
26-
27- script :
28- - npm run build
29- - npm run test-unit-travis || travis_terminate 1
30- - npm run lint
31- - npm run check-packages
32- - npm run test-integration-travis || travis_terminate 1
33-
34- before_deploy :
35- - pyenv global 3.8
36- - pip install --user bump2version
37- - echo "@ibm-cloud:registry=https://na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/" > ~/.npmrc
38- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:_auth=$ARTIFACTORY_NPM_AUTH" >> ~/.npmrc # pragma: allowlist secret
39- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:email=$ARTIFACTORY_MAIL" >> ~/.npmrc
40- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:always-auth=true" >> ~/.npmrc
41- - npm install -g semantic-release
42- - npm install -g @semantic-release/changelog
43- - npm install -g @semantic-release/exec
44- - npm install -g @semantic-release/git
45- - npm install -g @semantic-release/github
46- - npm install -g @semantic-release/npm
47-
48- deploy :
49- - provider : script
50- skip_cleanup : true
51- script : semantic-release
52- on :
53- node : 18
54- branch : main
12+ jobs :
13+ include :
14+ - stage : verify
15+ install :
16+ - npm install
17+ script :
18+ - npm run build
19+ - npm run test-unit-travis || travis_terminate 1
20+ - npm run lint
21+ - npm run check-packages
0 commit comments