Merge pull request #4628 from mejackreed/travis-sudo

Merge pull request 4628
This commit is contained in:
jekyllbot 2016-03-09 11:19:58 -08:00
commit 9e57eb1858
1 changed files with 12 additions and 0 deletions

View File

@ -112,6 +112,8 @@ branches:
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster build
{% endhighlight %}
Ok, now for an explanation of each line:
@ -202,6 +204,16 @@ environment variable `NOKOGIRI_USE_SYSTEM_LIBRARIES` to `true`.
exclude: [vendor]
{% endhighlight %}
By default you should supply the `sudo: false` command to Travis. This command
explicitly tells Travis to run your build on Travis's [container-based
infrastructure](https://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure). Running on the container-based infrastructure can often times
speed up your build. If you have any trouble with your build, or if your build
does need `sudo` access, modify the line to `sudo: required`.
{% highlight yaml %}
sudo: false
{% endhighlight %}
### Troubleshooting
**Travis error:** *"You are trying to install in deployment mode after changing