Skip to content

Commit

Permalink
Move testing script to ./test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jul 20, 2018
1 parent 0c6e5d4 commit a699d21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
language: rust

before_install:
# install shellcheck
- wget -c https://goo.gl/ZzKHFv -O - | tar -xvJ -C /tmp/
- PATH="/tmp/shellcheck-latest:$PATH"
script: |
set -e
(cd bin && shellcheck -x $(grep -rl '^#!.*[ /]bash$' .))
(cd lib/aurto && shellcheck -x $(grep -rl '^#!.*[ /]bash$' .))
(cd trust-check && cargo test)

set +e
script: ./test
10 changes: 10 additions & 0 deletions test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# shellcheck disable=SC2046

set -eux

(cd bin && shellcheck -x $(grep -rl '^#!.*[ /]bash$' .))

(cd lib/aurto && shellcheck -x $(grep -rl '^#!.*[ /]bash$' .))

(cd trust-check && cargo test)

0 comments on commit a699d21

Please sign in to comment.