|
-
-
- ---
-
-
-
-
-
-
-
-
-
-
- os: 'linux'
- arch: 'amd64'
- dist: 'bionic'
- version: '~> 1.0'
-
-
- language: 'ruby'
- cache: 'bundler'
-
-
- services:
- - docker
-
-
- script:
- - bin/kitchen verify "${INSTANCE}"
-
-
- stages:
- - test
-
-
-
-
- jobs:
- include:
-
-
-
- - language: 'node_js'
- node_js: 'lts/*'
- env: 'Lint'
- name: 'Lint: salt-lint, yamllint, rubocop, shellcheck & commitlint'
- before_install: 'skip'
- script:
-
- - pip install --user salt-lint
- - git ls-files -- '*.sls' '*.jinja' '*.j2' '*.tmpl' '*.tst'
- | xargs salt-lint
- # Install and run `yamllint`
- # Need at least `v1.17.0` for the `yaml-files` setting
- - pip install --user yamllint>=1.17.0
- - yamllint -s .
- # Install and run `rubocop`
- - gem install rubocop
- - rubocop -d
- # Run `shellcheck` (already pre-installed in Travis)
- - shellcheck --version
- - git ls-files -- '*.sh' '*.bash' '*.ksh'
- | xargs shellcheck
- # Install and run `commitlint`
- - npm i -D @commitlint/config-conventional
- @commitlint/travis-cli
- - commitlint-travis
-
- # Run `pre-commit` linters in a single job
- - language: 'python'
- env: 'Lint_pre-commit'
- name: 'Lint: pre-commit'
- before_install: 'skip'
- cache:
- directories:
- - $HOME/.cache/pre-commit
- script:
-
- - pip install pre-commit==2.7.1
- - pre-commit run --all-files --color always --verbose
- - pre-commit run --color always --hook-stage manual --verbose commitlint-travis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - env: INSTANCE=vimrc-debian-11-master-py3
-
- - env: INSTANCE=vimrc-debian-10-master-py3
-
- - env: INSTANCE=vimrc-debian-9-master-py3
-
- - env: INSTANCE=vimrc-ubuntu-2204-master-py3
-
- - env: INSTANCE=vimrc-ubuntu-2004-master-py3
-
- - env: INSTANCE=vimrc-ubuntu-1804-master-py3
-
- - env: INSTANCE=vimrc-centos-stream8-master-py3
-
- - env: INSTANCE=vimrc-centos-7-master-py3
-
- - env: INSTANCE=vimrc-fedora-36-master-py3
-
- - env: INSTANCE=vimrc-fedora-35-master-py3
-
- - env: INSTANCE=vimrc-opensuse-leap-153-master-py3
-
- - env: INSTANCE=vimrc-opensuse-tmbl-latest-master-py3
-
- - env: INSTANCE=vimrc-amazonlinux-2-master-py3
-
- - env: INSTANCE=vimrc-oraclelinux-8-master-py3
-
- - env: INSTANCE=vimrc-oraclelinux-7-master-py3
-
-
-
-
-
-
-
- - env: INSTANCE=vimrc-almalinux-8-master-py3
-
- - env: INSTANCE=vimrc-rockylinux-8-master-py3
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - stage: 'release'
- language: 'node_js'
- node_js: 'lts/*'
- env: 'Release'
- name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
- before_install: 'skip'
- script:
-
- - export MAINTAINER_TOKEN=${GH_TOKEN}
- - go get github.com/myii/maintainer
- - maintainer contributor
-
-
- - npm i -D @semantic-release/changelog@3
- @semantic-release/exec@3
- @semantic-release/git@7
- deploy:
- provider: 'script'
-
-
-
- edge: true
-
- script: 'npx semantic-release@15.14'
-
-
- notifications:
- webhooks:
- if: 'repo = saltstack-formulas/users-formula'
- urls:
- - https://saltstack-formulas.zulipchat.com/api/v1/external/travis?api_key=HsIq3o5QmLxdnVCKF9is0FUIpkpAY79P&stream=CI&topic=saltstack-formulas%2Fusers-formula&ignore_pull_requests=true
- on_success: always
- on_failure: always
- on_start: always
- on_cancel: always
- on_error: always
|