diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/.travis.yml b/.travis.yml index 9e793d9b..1ab73f5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,32 @@ language: generic -sudo: required +dist: bionic services: - docker -env: - - DIST=alpine - - DIST=centos6 - - DIST=debian10 - - DIST=fedoradev - - DIST=ubuntu14 - - DIST=ubuntu14 BSD=true NETWORK=none - - DIST=tools +jobs: + include: + - stage: lint + language: go + go: "1.14" + services: [] + cache: + directories: + - $HOME/.cache/pip + - $HOME/.cache/pre-commit + before_install: [] + script: + - pyenv shell 3.8 + - pip3 install "$(grep ^pre-commit test/requirements-dev.txt)" + - pre-commit run --all-files --color=always + - stage: test + env: DIST=alpine + - env: DIST=centos7 + - env: DIST=debian10 + - env: DIST=fedoradev + - env: DIST=ubuntu14 + - env: DIST=ubuntu14 BSD=true NETWORK=none before_install: - docker build @@ -23,10 +37,6 @@ script: -e CI=true -e DIST=$DIST -e BSD=$BSD -e NETWORK=$NETWORK ${NETWORK:+--network $NETWORK} -t bash-completion:$DIST - - if test $DIST = tools; then - test/run-shellcheck -f gcc - bash_completion bash_completion.sh.in completions/!(Makefile*); - fi before_deploy: - docker start bash-completion |