Update tests (#2)

* Update testing library

* Refactored tests to use new testing library

* Add travis

* Modify travis to use https for git submodules

* Add shellcheck

* Remove shellcheck

* Add debian apt sources

* Add shellcheck

* Add travis status image
This commit is contained in:
Jason Hee authored and GitHub committed 2018-04-18 15:12:52 +08:00
1 parent 65eb29e4fe
commit 79ccba4ac2
6 files changed
+66 -20

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
language: generic
sudo: required
matrix:
include:
- dist: trusty
sudo: required
# Use https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior
git:
submodules: false
# use sed to replace the SSH URL with the public URL, then init and update submodules
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
script:
- bash -c 'shopt -s globstar; shellcheck ./*.sh; shellcheck ./tests/*.sh'
- bash tests/unit-tests.sh -skip