Bläddra i källkod

modify build testing dependency installs in Travis settings

Chris Simpkins 7 år sedan
förälder
incheckning
475efcd41c
1 ändrade filer med 21 tillägg och 2 borttagningar
  1. 21 2
      .travis.yml

+ 21 - 2
.travis.yml

@@ -7,6 +7,15 @@ matrix:
       sudo: required
       sudo: required
       env:
       env:
         - TARGET="lint"
         - TARGET="lint"
+      before_script:
+        - pip install ufolint
+        - sudo apt-get -qq update
+        - sudo apt-get install -y shellcheck
+      script:
+        - make -j $TARGET
+    - os: linux
+      sudo: required
+      env:
         - TARGET="build-with-dependencies"
         - TARGET="build-with-dependencies"
       before_script:
       before_script:
         - pip install ufolint
         - pip install ufolint
@@ -17,7 +26,6 @@ matrix:
     - os: osx
     - os: osx
       env:
       env:
         - TARGET="lint"
         - TARGET="lint"
-        - TARGET="build-with-dependencies"
       before_install:
       before_install:
         - brew update
         - brew update
         - brew install python3
         - brew install python3
@@ -28,7 +36,18 @@ matrix:
         - brew install shellcheck
         - brew install shellcheck
       script:
       script:
         - make -j $TARGET
         - make -j $TARGET
-
+    - os: osx
+      env:
+        - TARGET="build-with-dependencies"
+      before_install:
+        - brew update
+        - brew install python3
+        - brew install pkg-config || brew reinstall pkg-config
+        - brew link --force pkg-config
+        - virtualenv env -p python3
+        - source env/bin/activate
+      script:
+        - make -j $TARGET
 
 
 notifications:
 notifications:
   email: false
   email: false