File: .travis.yml

package info (click to toggle)
python-ibm-cloud-sdk-core 3.24.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 944 kB
  • sloc: python: 5,750; makefile: 40; xml: 7; sh: 7
file content (51 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download
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
45
46
47
48
49
50
51
language: python

dist: jammy

stages:
  - name: Build-Test
    if: tag IS blank
  - name: Semantic-Release
    if: (branch = main) AND (type IN (push, api)) AND (fork = false)
  - name: Publish-Release
    if: (tag IS present) AND (fork = false)

# Default "install" and "script" steps.
install: true
script:
  - make ci

jobs:
  include:
    - stage: Build-Test
      python: '3.9'
    - python: '3.10'
    - python: '3.11'
    - python: '3.12'
    - python: '3.13'

    - name: Detect-Secrets
      language: python
      python: '3.13'
      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
      install:
        - npm install
        - pip install --user bump-my-version
      script:
        - npm run semantic-release

    - stage: Publish-Release
      python: "3.9"
      name: Publish-To-PyPi
      script:
        - make ci
        - make publish-deps
        - make publish-release