From 698dfcec7d22e1ea109ba2b8de3d80bd9e994097 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 22 Feb 2017 13:56:46 +0100 Subject: Travis CI: Pull installation of dependencies out of script, drop sudo --- .travis.sh | 16 ---------------- .travis.yml | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 18 deletions(-) delete mode 100755 .travis.sh diff --git a/.travis.sh b/.travis.sh deleted file mode 100755 index 382290f..0000000 --- a/.travis.sh +++ /dev/null @@ -1,16 +0,0 @@ -#! /bin/bash -# Copyright (C) 2017 Sebastian Pipping -# Licensed under the 3-Clause BSD license -set -e - -PS4='# ' -set -x - - -# Install BATS that the test suite relies on -git clone --depth 1 https://github.com/sstephenson/bats.git -( cd bats && sudo ./install.sh /usr/local ) - - -# Run test suite -./test.bats diff --git a/.travis.yml b/.travis.yml index 4873088..daca79e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,14 @@ language: bash -script: ./.travis.sh -sudo: required + +# Install BATS without root permissions +# so do not need "sudo: required" and support +# the container environment with faster boot time +# https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments +install: +- git clone --depth 1 https://github.com/sstephenson/bats.git +- ( cd bats && ./install.sh ~/.local ) + +env: +- PATH="${PATH}:${HOME}/.local" + +script: ./test.bats -- cgit v1.2.3-65-gdbad