Files
Jason Hee ce73240765 Use xenial for travis (#11)
* Use Ubuntu Xenial for Travis CI

* Fix CI tests

* Ensure NTP time is synced

https://askubuntu.com/a/1049810
2021-08-15 21:28:49 +08:00

16 lines
546 B
YAML

language: generic
sudo: required
matrix:
include:
- dist: xenial
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 -s