From 3ef8076fa3f097015c80fd3d30715b311bdaaee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-Ren=20Lin=29?= Date: Thu, 5 Oct 2017 05:53:45 +0800 Subject: [PATCH] Add my solution --- TravisCI.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/TravisCI.md b/TravisCI.md index 11e442a..304ef96 100644 --- a/TravisCI.md +++ b/TravisCI.md @@ -46,4 +46,35 @@ script: 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 + +```yaml +--- +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 ``` \ No newline at end of file