2016-03-26 01:03:25 +00:00
|
|
|
language: bash
|
2016-03-26 01:13:31 +00:00
|
|
|
sudo: required
|
2016-03-26 01:03:25 +00:00
|
|
|
|
2016-12-08 07:50:48 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- debian-sid
|
|
|
|
packages:
|
|
|
|
- shellcheck
|
|
|
|
|
2016-03-26 03:32:06 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2016-03-27 09:50:09 +01:00
|
|
|
before_install:
|
2016-12-08 09:23:15 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
2016-03-27 09:50:09 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
|
|
|
|
|
2016-03-26 01:03:25 +00:00
|
|
|
script:
|
2017-07-01 00:08:47 +01:00
|
|
|
- time ./neofetch --ascii --config config/travis.conf -v
|
2016-12-08 08:18:06 +00:00
|
|
|
# See this wiki page for why we're disabling these errors.
|
2016-12-08 09:17:08 +00:00
|
|
|
# https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
|
2017-08-02 03:57:00 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010,SC1004; fi
|
2017-08-02 04:09:33 +01:00
|
|
|
# The if statement is here to invert the exit code from grep.
|
|
|
|
# grep normally errors if no match is found but we want the opposite.
|
|
|
|
# We invert it so grep fails if a match is found.
|
2018-02-01 22:24:48 +00:00
|
|
|
# - if grep '.\{101\}' neofetch; then (exit 1); else (exit 0); fi
|