-
Notifications
You must be signed in to change notification settings - Fork 1.8k
TravisCI
林博仁(Buo-Ren Lin) edited this page Oct 4, 2017
·
22 revisions
contributor hugovk says:
It took me a while to find a way to install on Travis CI, but thanks to this I got it working:
language: bash
# Use container-based infrastructure for quicker build start-up
sudo: false
addons:
apt:
sources:
- debian-sid # Grab shellcheck from the Debian repo (o_O)
packages:
- shellcheck
script:
- bash -c 'shopt -s globstar; shellcheck **/*.{sh,bash}'
matrix:
fast_finish: true
contributor ccztux says:
This is how you can implement shellcheck on Travis CI using the latest docker image:
sudo: required
language: bash
services:
- docker
before_install:
- docker pull koalaman/shellcheck
script:
- docker run -v $(pwd):/scripts koalaman/shellcheck /scripts/yourscript.sh
matrix:
fast_finish: true
contributor @Lin-Buo-Ren says:
Here's a Git submodule and configuration that support build and install ShellCheck without root access http://github.com/Lin-Buo-Ren/Utilities-for-Travis-CI Also a cache is preserved to decrease subsequent build time
---
language: bash
sudo: false
addons:
apt:
packages:
- realpath # required by script
- cabal-install
- ghc
install:
- ./"Build and Setup ShellCheck's Latest Release.bash" --without-root
- PATH="${HOME}/.cabal/bin:${PATH}"
before_cache:
- rm $HOME/.cabal/logs/build.log
cache:
directories:
- $HOME/.cabal