Merge pull request #2651 from estesp/travis-darwin-cleanup

Remove setup steps unnecessary when travis runs on darwin
This commit is contained in:
Derek McGowan 2018-09-14 15:29:30 -07:00 committed by GitHub
commit 074459cb51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,12 +44,12 @@ install:
- protoc --version - protoc --version
- go get -u github.com/vbatts/git-validation - go get -u github.com/vbatts/git-validation
- go get -u github.com/kunalkushwaha/ltag - go get -u github.com/kunalkushwaha/ltag
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools ; fi
- wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz - if [ "$TRAVIS_GOOS" = "linux" ]; then wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz ; fi
- tar -C /tmp/ -zxf /tmp/criu.tar.gz - if [ "$TRAVIS_GOOS" = "linux" ]; then tar -C /tmp/ -zxf /tmp/criu.tar.gz ; fi
- cd /tmp/criu-3.7 && sudo make install-criu - if [ "$TRAVIS_GOOS" = "linux" ]; then cd /tmp/criu-3.7 && sudo make install-criu ; fi
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
script: script: