Add my solution

林博仁(Buo-Ren Lin)
2017-10-05 05:53:45 +08:00
parent d762506863
commit 3ef8076fa3

@@ -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
```