summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1ab73f5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,56 @@
+language: generic
+
+dist: bionic
+
+services:
+ - docker
+
+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
+ --build-arg DIST=$DIST -t bash-completion:$DIST -f test/docker/Dockerfile .
+
+script:
+ - docker run --name bash-completion
+ -e CI=true -e DIST=$DIST -e BSD=$BSD -e NETWORK=$NETWORK
+ ${NETWORK:+--network $NETWORK}
+ -t bash-completion:$DIST
+
+before_deploy:
+ - docker start bash-completion
+ - docker exec bash-completion
+ sh -c "tar c bash-completion-$TRAVIS_TAG.tar.*" | tar xv
+ - docker kill bash-completion
+
+deploy:
+ provider: releases
+ api_key:
+ secure: MoK9nzmS6CBzPPIrhC0Ch6hIB3zEzLqZE6k4axoCyz/wmJFLJgX9OCq5K8zS4Jv8NuaA2C1YTcr+m56IO9N0RTmIWrS4q40fLIhKlYv6255u+wXMkGfqXbiFAZG5yndhUo8NE6QXAtixd3nQ/3/MOt2PdsOn+OdxTDmcPSXaW/ltkd/fMHynWzupdyRJ1v46IofPBrjsC1pTzW0iVqVHz64Ix3kPVjjPR9BMHzgKMJ8sPWBGZtF2ovjwsTHYPSpEyytVRecqrmEjM6QBCgfhQDqH87jOw6Y81xh1fWDCoxaZw7HlEcQ+HeHOkDdA24AYaxVoYXrKdIDXUXWt8w674Po7UWB6kIUn3J59Xaw60Sp4VaN88Y2eX9UKRcoDRHLWc8HKt4f9AUDR9YpFF08N+gKRmJFt9mCxqeJ+pyYD/coHGkGb8XvewTKihCSuH/qCWjM8XqM493DLDlJ5aELgMEcJXPXX4TmjsriOeErTY1qxRTRHJPmfUJ/kHtmpE+DxNXpwZOnyG+VoO5aEaIKbzHxX9QzWyyEhTflupdatZ2JFt1pmVDpwH9zcEifBwE0cUwhXk+LJuxHd5ePIIpvepAAnXKaxlYwchj4cFaJp7S9GZoAQughgQQkyfz0qr3J6hBhg360QAq4yjPOWjGgGz4iAG8kWd3MVXLvL+TtfBeY=
+ file: bash-completion-$TRAVIS_TAG.tar.xz
+ skip_cleanup: true
+ on:
+ repo: scop/bash-completion
+ condition: $DIST = alpine
+ tags: true