Remove sudo from Travis CI tutorial (#8187)

Merge pull request 8187
This commit is contained in:
Philip Eriksson 2020-05-18 14:15:13 +02:00 committed by GitHub
parent 603fae800a
commit 497246dcf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -114,8 +114,6 @@ addons:
packages: packages:
- libcurl4-openssl-dev - libcurl4-openssl-dev
sudo: false # route your build to the container-based infrastructure for a faster build
cache: bundler # caching bundler gem packages will speed up build cache: bundler # caching bundler gem packages will speed up build
# Optional: disable email notifications about the outcome of your builds # Optional: disable email notifications about the outcome of your builds
@ -212,16 +210,6 @@ environment variable `NOKOGIRI_USE_SYSTEM_LIBRARIES` to `true`.
exclude: [vendor] exclude: [vendor]
``` ```
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`.
```yaml
sudo: false
```
To speed up the build, you should cache the gem packages created by `bundler`. To speed up the build, you should cache the gem packages created by `bundler`.
Travis has a pre-defined [cache strategy for this tool][6] which should have Travis has a pre-defined [cache strategy for this tool][6] which should have
all the default configs to do exactly that. all the default configs to do exactly that.