Skip to content

Commit

Permalink
Install XClip for Travis CI
Browse files Browse the repository at this point in the history
Request sudo to install xclip.

Note that this switches the project to 'Standard Infrastructure'
rather than 'container based intrastructure'
http://stackoverflow.com/questions/26299552/travis-sudo-is-disabled
  • Loading branch information
edthedev committed Apr 30, 2016
1 parent bf07c6e commit 4fe2ec8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
notifications:
email: false

sudo: false
sudo: required

language: node_js

Expand All @@ -12,6 +12,8 @@ env:
- GITHUB_TOKEN=1b17d62d38a4846efa7ea4de4b773b581787b0f1

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y xclip
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
Expand All @@ -24,4 +26,4 @@ install:

script:
- gulp
- npm test --silent
- npm test --silent

0 comments on commit 4fe2ec8

Please sign in to comment.