2016-03-26 02:03:25 +01:00
|
|
|
language: bash
|
2016-03-26 02:13:31 +01:00
|
|
|
sudo: required
|
2016-03-26 02:03:25 +01:00
|
|
|
|
2016-03-26 04:32:06 +01:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2016-03-27 10:50:09 +02:00
|
|
|
before_install:
|
2016-12-08 10:23:15 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
2016-03-27 10:50:09 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
|
|
|
|
|
2018-06-03 03:11:26 +02:00
|
|
|
install:
|
|
|
|
# Install a custom version of shellcheck instead of Travis CI's default
|
2018-06-03 03:19:11 +02:00
|
|
|
- scversion="latest" # or "v0.4.7", or "latest"
|
2018-06-03 03:11:26 +02:00
|
|
|
- wget "https://storage.googleapis.com/shellcheck/shellcheck-${scversion}.linux.x86_64.tar.xz"
|
|
|
|
- tar --xz -xvf "shellcheck-${scversion}.linux.x86_64.tar.xz"
|
|
|
|
- shellcheck() { "shellcheck-${scversion}/shellcheck" "$@"; }
|
|
|
|
|
2016-03-26 02:03:25 +01:00
|
|
|
script:
|
2018-05-04 01:35:28 +02:00
|
|
|
- time ./neofetch --travis -v
|
2019-01-04 20:21:59 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck -e SC2244 neofetch; fi
|
2018-05-04 04:01:55 +02:00
|
|
|
# Check for lines longer than 100 chars.
|
2018-06-04 00:41:23 +02:00
|
|
|
- if grep '.\{102\}' neofetch; then (exit 1); else (exit 0); fi
|