Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add checkbashisms to Travis CI #11

Merged
merged 1 commit into from
Mar 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
language: bash

os:
- linux
- osx

# Prepare the environment
addons:
apt:
packages:
# Linux: only bash (and sh) are installed by default
- ksh
- zsh
# Linux: install the checkbashisms script
- devscripts
before_install:
# OS X: install the checkbashisms script (||true to avoid Linux fail)
- test "$TRAVIS_OS_NAME" = osx && brew update || true
- test "$TRAVIS_OS_NAME" = osx && brew install checkbashisms || true

script:
# Run some code checkings on the script itself
- checkbashisms --posix clitest
# Run the full test suite in all the supported POSIX shells
- bash clitest test.md
- ksh clitest test.md
- zsh clitest test.md
- sh clitest test.md

notifications:
email: false