summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /.travis.yml
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml36
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