Parcourir la source

travis: use apt addons to avoid sudo requirement

This should allow us to run on the container-based travis workers.
Philipp Zabel il y a 7 ans
Parent
commit
885f35fadc
1 fichiers modifiés avec 6 ajouts et 3 suppressions
  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