浏览代码

adds OS X testing to CI test matrix, includes OS specific testing dependency install changes to .travis.yml

Chris Simpkins 7 年之前
父节点
当前提交
53760bdee5
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      .travis.yml

+ 8 - 2
.travis.yml

@@ -1,14 +1,20 @@
 sudo: true
 sudo: true
 language: python
 language: python
 
 
+os:
+  - linux
+  - osx
+
 env:
 env:
   - TARGET="lint"
   - TARGET="lint"
   - TARGET="build-with-dependencies"
   - TARGET="build-with-dependencies"
 
 
 before_script:
 before_script:
   - pip install ufolint
   - pip install ufolint
-  - sudo apt-get -qq update
-  - sudo apt-get install -y shellcheck
+  - if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get -qq update; fi
+  - if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get install -y shellcheck; fi
+  - if [ $TRAVIS_OS_NAME = "osx" ]; then brew update; fi
+  - if [ $TRAVIS_OS_NAME = "osx" ]; then brew outdated shellcheck || brew upgrade shellcheck; fi
 
 
 script:
 script:
   - make -j $TARGET
   - make -j $TARGET