This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
neofetch/.travis.yml

24 lines
809 B
YAML
Raw Normal View History

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-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
2018-06-03 02:11:26 +01:00
install:
# Install a custom version of shellcheck instead of Travis CI's default
2018-06-03 02:19:11 +01:00
- scversion="latest" # or "v0.4.7", or "latest"
2018-06-03 02:11:26 +01: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 01:03:25 +00:00
script:
2018-05-04 00:35:28 +01:00
- time ./neofetch --travis -v
2018-06-02 21:59:24 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch; fi
# Check for lines longer than 100 chars.
2018-06-03 23:41:23 +01:00
- if grep '.\{102\}' neofetch; then (exit 1); else (exit 0); fi