From 10d75a53f03a17e046e1337cd40cd97224248fe8 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski Date: Sat, 5 Nov 2016 19:57:23 +0100 Subject: [PATCH] Improve system detection. Actually, Travis has a special environmental variable which you can use to determine the OS. Cheers! --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 503e63f00..3d0fbc918 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ os: - osx install: - ./build/install.sh - - if [ "$(uname -s)" != "Darwin" ]; then sudo apt-get update && sudo apt-get install -y zsh; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update && sudo apt-get install -y zsh; fi script: - ./script/test notifications: