Skip to content

Commit

Permalink
Fix for windows build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Mar 22, 2020
1 parent bbf677f commit cfd2474
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@ addons:
apt:
update: true
packages: [bash, mksh, yash, zsh, shellcheck]
homebrew:
update: true
packages: [shellcheck]
jobs:
include:
- os: linux
dist: bionic
env: COVERAGE=1
env: COVERAGE=1 SHELLCHECK=1
services: docker
- os: osx
osx_image: xcode11.3
- os: windows
before_install:
- curl -fsSL https://git.io/shellspec | sh -s master -y
script:
- make test
- make check
- ./test.sh
- if [ "$SHELLCHECK" ]; then make check; fi
- if [ "$COVERAGE" ]; then make coveralls; fi
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
all: test check

test:
if type bash; then shellspec -s bash --no-quick; fi
if type zsh; then shellspec -s zsh --no-quick; fi
if type mksh; then shellspec -s mksh --no-quick; fi
if type yash; then shellspec -s yash --no-quick; fi
./test.sh

check:
shellcheck shellmetrics spec/*.sh
Expand Down
6 changes: 6 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh -ex
type bash && shellspec -s bash --no-quick
type zsh && shellspec -s zsh --no-quick
type mksh && shellspec -s mksh --no-quick
type yash && shellspec -s yash --no-quick
echo Done

0 comments on commit cfd2474

Please sign in to comment.