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:
- "GO15VENDOREXPERIMENT=1"
before_install:
- make deps
- 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 apt-get install -y libcap2-bin
- sudo make deps
script:
- make multiarch-build test-integration test-coverage
- sudo make multiarch-build test-integration test-coverage
after_success:
- |
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then