travis: prepare for additional builds
authorSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 15 Feb 2017 18:44:48 +0000 (18:44 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Thu, 16 Feb 2017 07:04:11 +0000 (07:04 +0000)
Prepare the .travis.yml file to accept new builds by making the Linux
OS choice more explicit and protecting some Linux specific steps.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
.travis.yml

index 9eb723c3151298fbec2068934c2f02985d07ca33..4113da71f88c210a48af6b217eeb4997cb4f435f 100644 (file)
@@ -1,4 +1,6 @@
 language: c
+os:
+  - linux
 compiler:
   - clang
   - gcc
@@ -6,5 +8,5 @@ env:
   global:
     - MAKEFLAGS="-j 2"
 before_install:
-  - sudo apt-get -qq update
-  - sudo apt-get install -qq -y libaio-dev libnuma-dev libz-dev
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
+  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq -y libaio-dev libnuma-dev libz-dev; fi