Run tests as root to verify caps

This commit is contained in:
Ettore Di Giacinto
2020-08-05 19:19:33 +02:00
parent 66513955c7
commit 51378bdfb6

View File

@@ -6,10 +6,10 @@ go:
env: env:
- "GO15VENDOREXPERIMENT=1" - "GO15VENDOREXPERIMENT=1"
before_install: before_install:
- make deps - sudo apt-get install -y libcap2-bin
- curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 && chmod +x container-diff-linux-amd64 && mkdir -p $HOME/bin && export PATH=$PATH:$HOME/bin && mv container-diff-linux-amd64 $HOME/bin/container-diff - sudo make deps
script: script:
- make multiarch-build test-integration test-coverage - sudo make multiarch-build test-integration test-coverage
after_success: after_success:
- | - |
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then