From 941b3bd7013eff6d42cb0395f79c4be4d093c56d Mon Sep 17 00:00:00 2001 From: Mitchell Cash Date: Sun, 15 Jan 2017 20:39:00 +1000 Subject: [PATCH] Move Travis builds to container-based infrastructure (#273) * Remove example warning as it does not apply * Modify the way apt packages work in .travis.yml By modifying the way apt packages work (remove the need to directly require sudo), the builds can now run on container-based infrastructure. --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3cea8954a..f1a014a34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,14 @@ language: csharp solution: src/NzbDrone.sln -script: # the following commands are just examples, use whatever your build process requires +addons: + apt: + packages: + - nodejs + - npm +script: - ./build.sh - chmod +x test.sh # - ./test.sh Linux Unit Takes far too long, maybe even crashes travis :/ -install: - - sudo apt-get install nodejs - - sudo apt-get install npm after_success: - chmod +x package.sh - ./package.sh