Skip to content

Commit b215a65

Browse files
committed
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 <[email protected]>
1 parent 05984a9 commit b215a65

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ install:
4444
- protoc --version
4545
- go get -u github.com/vbatts/git-validation
4646
- go get -u github.com/kunalkushwaha/ltag
47-
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc
48-
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni
49-
- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools
50-
- wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz
51-
- tar -C /tmp/ -zxf /tmp/criu.tar.gz
52-
- cd /tmp/criu-3.7 && sudo make install-criu
47+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi
48+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi
49+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools ; fi
50+
- if [ "$TRAVIS_GOOS" = "linux" ]; then wget https://github.com/checkpoint-restore/criu/archive/v3.7.tar.gz -O /tmp/criu.tar.gz ; fi
51+
- if [ "$TRAVIS_GOOS" = "linux" ]; then tar -C /tmp/ -zxf /tmp/criu.tar.gz ; fi
52+
- if [ "$TRAVIS_GOOS" = "linux" ]; then cd /tmp/criu-3.7 && sudo make install-criu ; fi
5353
- cd $TRAVIS_BUILD_DIR
5454

5555
script:

0 commit comments

Comments
 (0)