From b215a65f7deffd8dc8abc7c19577223180005fab Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Fri, 14 Sep 2018 13:16:22 -0400 Subject: [PATCH] Remove setup steps unecessary when travis runs on darwin Many of the setup/dev programs installed are not used because no testing is executed on GOOS=darwin builds. Makes sense to remove them and make darwin runs much shorter. Signed-off-by: Phil Estes --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 99315fe5c..7415a2345 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,12 +44,12 @@ install: - protoc --version - go get -u github.com/vbatts/git-validation - go get -u github.com/kunalkushwaha/ltag - - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc - - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni - - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools - - wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz - - tar -C /tmp/ -zxf /tmp/criu.tar.gz - - cd /tmp/criu-3.7 && sudo make install-criu + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then tar -C /tmp/ -zxf /tmp/criu.tar.gz ; fi + - if [ "$TRAVIS_GOOS" = "linux" ]; then cd /tmp/criu-3.7 && sudo make install-criu ; fi - cd $TRAVIS_BUILD_DIR script: