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