mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add my solution
31
TravisCI.md
31
TravisCI.md
@@ -47,3 +47,34 @@ 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
|
||||
```
|
Reference in New Issue
Block a user