diff options
author | 2017-02-22 13:56:46 +0100 | |
---|---|---|
committer | 2017-02-22 13:56:46 +0100 | |
commit | 698dfcec7d22e1ea109ba2b8de3d80bd9e994097 (patch) | |
tree | 18eadc32ac3ce6247b301ecc59faf63f27c48719 | |
parent | Travis CI: Ensure we can always use sudo (diff) | |
download | porticron-698dfcec7d22e1ea109ba2b8de3d80bd9e994097.tar.gz porticron-698dfcec7d22e1ea109ba2b8de3d80bd9e994097.tar.bz2 porticron-698dfcec7d22e1ea109ba2b8de3d80bd9e994097.zip |
Travis CI: Pull installation of dependencies out of script, drop sudo
-rwxr-xr-x | .travis.sh | 16 | ||||
-rw-r--r-- | .travis.yml | 15 |
2 files changed, 13 insertions, 18 deletions
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 <sebastian@pipping.org> -# 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 |