-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
44 lines (36 loc) · 1014 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: node_js
dist: jammy
cache:
npm: false
stages:
- name: Build-Test
- name: Semantic-Release
if: (branch = main) AND (type IN (push, api)) AND (fork = false)
# Default "before_install" and "script" steps.
script:
# Prepare sub-package for tests
- cd sdk-test-utilities && npm ci && cd ..
# Run standard build steps.
- npm run build
- npm run lint
- npm run test-travis
jobs:
include:
- stage: Build-Test
language: node_js
node_js: 18
- node_js: 20
- node_js: 22
- name: Detect-Secrets
language: python
python: 3.12
install:
- pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets"
script:
- detect-secrets scan --update .secrets.baseline
- detect-secrets -v audit --report --fail-on-unaudited --fail-on-live --fail-on-audited-real .secrets.baseline
- stage: Semantic-Release
language: node_js
node_js: 22
script:
- npm run semantic-release