CI: Fix Travis and CI setup

Make the CI setup script call the "master" `setup.sh` script (in the
`tests` repo) and update the Travis config accordingly to ensure that
both setup and static checks are run.

Also updated Travis to use Ubuntu 16.04 LTS (Xenial).

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt
2019-06-20 12:20:17 +01:00
parent de3627814b
commit d6fbc929a1
2 changed files with 12 additions and 3 deletions

View File

@@ -8,4 +8,10 @@
set -e
cidir=$(dirname "$0")
bash "${cidir}/static-checks.sh"
source "${cidir}/lib.sh"
clone_tests_repo
pushd "${tests_repo_dir}"
.ci/setup.sh
popd

View File

@@ -5,7 +5,7 @@
#
sudo: required
dist: trusty
dist: xenial
language: go
os:
@@ -15,8 +15,11 @@ os:
go:
- "1.10.x"
before_script:
before_install:
- ".ci/setup.sh"
before_script:
- ".ci/static-checks.sh"
script:
- ".ci/run.sh"