]> granicus.if.org Git - libevent/commitdiff
travis-ci: use container-based infrastructure
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 16 Oct 2016 22:05:38 +0000 (01:05 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 16 Oct 2016 22:30:54 +0000 (01:30 +0300)
- by disabling sudo
- and since we use addons.apt.packages we don't need apt-get update, that requires sudo

Link: https://docs.travis-ci.com/user/migrating-from-legacy/
.travis.yml

index d2210dd8da151b1560a174177a3d35c4bc308904..37efae73907d47953c14d216abba69bdb70d3c60 100644 (file)
@@ -1,6 +1,7 @@
 os:
   - linux
   - osx
+sudo: false
 env:
   matrix:
     - EVENT_BUILD_METHOD=cmake EVENT_CMAKE_OPTIONS=""
@@ -19,9 +20,6 @@ compiler:
   - gcc
   - clang
 before_install:
-  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
-      sudo apt-get update -qq;
-    fi
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
       brew update;
       brew uninstall libtool && brew install libtool;