瀏覽代碼

travis: use apt addons to avoid sudo requirement

This should allow us to run on the container-based travis workers.
Philipp Zabel 7 年之前
父節點
當前提交
885f35fadc
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      .travis.yml

+ 6 - 3
.travis.yml

@@ -1,5 +1,5 @@
 # This is the project file for the automated build system travis (travis-ci.com).
-sudo: required
+sudo: false
 
 dist: trusty
 
@@ -7,9 +7,12 @@ language: c
 
 compiler: gcc
 
+addons:
+  apt:
+    packages:
+      - libhidapi-dev
+
 before_install:
-  - sudo apt-get update -qq
-  - sudo apt-get install -qq libhidapi-dev
   - ./autogen.sh
 
 install: true # skip install step