1
1
dist : focal
2
2
3
- # Remove this if using external Travis
4
- group : beta
5
-
6
- version : ~> 1.0
7
-
8
3
language : node_js
9
4
node_js :
10
- - 20
5
+ - 18
6
+ cache : npm
11
7
12
8
branches :
13
9
only :
14
10
- main
15
11
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
- - echo "CODE_ENGINE_DOMAIN_MAPPING_NAME=api-unit-test-tls.e2e-board.info" >> code_engine_v2.env
27
- - echo "CODE_ENGINE_TLS_KEY_FILE_PATH=api/test/integration/tls-files/demohero.key" >> code_engine_v2.env
28
- - echo "CODE_ENGINE_TLS_CERT_FILE_PATH=api/test/integration/tls-files/demohero.crt" >> code_engine_v2.env
29
-
30
- script :
31
- - npm run build
32
- - npm run test-unit-travis || travis_terminate 1
33
- - npm run lint
34
- - npm run check-packages
35
- - ./scripts/get-dependencies.sh # get api repo for access to latest domain mapping cert
36
- - npm run test-integration-travis || travis_terminate 1
37
-
38
- before_deploy :
39
- - pyenv global 3.8
40
- - pip install --user bump2version
41
- - echo "@ibm-cloud:registry=https://na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/" > ~/.npmrc
42
- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:_auth=$ARTIFACTORY_NPM_AUTH" >> ~/.npmrc # pragma: allowlist secret
43
- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:email=$ARTIFACTORY_MAIL" >> ~/.npmrc
44
- - echo "//na.artifactory.swg-devops.com/artifactory/api/npm/wcp-codeengine-ux-team-npm-local/:always-auth=true" >> ~/.npmrc
45
- - npm install -g semantic-release
46
- - npm install -g @semantic-release/changelog
47
- - npm install -g @semantic-release/exec
48
- - npm install -g @semantic-release/git
49
- - npm install -g @semantic-release/github
50
- - npm install -g @semantic-release/npm
51
-
52
- deploy :
53
- - provider : script
54
- skip_cleanup : true
55
- script : semantic-release
56
- on :
57
- node : 20
58
- 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