Browse Source

another attempt at a matrix build for OS X platform CI testing, modifies python install relative to build phase

Chris Simpkins 7 years ago
parent
commit
53f2a2880d
1 changed files with 11 additions and 6 deletions
  1. 11 6
      .travis.yml

+ 11 - 6
.travis.yml

@@ -1,5 +1,5 @@
 sudo: true
 sudo: true
-language: python
+language: generic
 
 
 env:
 env:
   - TARGET="lint"
   - TARGET="lint"
@@ -13,15 +13,20 @@ matrix:
         - pip install ufolint
         - pip install ufolint
         - sudo apt-get -qq update
         - sudo apt-get -qq update
         - sudo apt-get install -y shellcheck
         - sudo apt-get install -y shellcheck
+      script:
+        - make -j $TARGET
     - os: osx
     - os: osx
-      before_script:
+      before_install:
         - brew update
         - brew update
-        - brew install python
-        - pip install shellcheck
+        - brew install python3
+        - virtualenv env -p python3
+        - source env/bin/activate
+      before_script:
+        - pip install ufolint
         - brew outdated shellcheck || brew upgrade shellcheck
         - brew outdated shellcheck || brew upgrade shellcheck
+      script:
+        - make -j $TARGET
 
 
-script:
-  - make -j $TARGET
 
 
 notifications:
 notifications:
   email: false
   email: false