Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2018-04-02 07:48:31 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-04-02 09:15:35 +0300
commiteb15ac37ef6668e298c0c4d8062726cd545da576 (patch)
treecfa08f29de234a40f8be23b3c29b2c8af23a2afd /.travis.yml
parenteb42774e587816b1fbcafbcea59ed65df703882a (diff)
travis: Run "gem install" without sudo
Running "sudo gem install" was causing random errors like the following: ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /home/travis/.rvm/gems/ruby-2.4.1/cache/asciidoctor-1.5.6.2.gem Perhaps sudo is no longer necessary, even on OS X? :-)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index a5695d539..6a784f227 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: go
-sudo: required
+sudo: false
dist: trusty
go:
- 1.9.4
@@ -21,5 +21,7 @@ script:
- ./hugo -s docs/
- ./hugo --renderToMemory -s docs/
before_install:
- # gem install must be run with sudo on OSX
- - sudo gem install asciidoctor | gem install asciidoctor
+ - which asciidoctor || true
+ - gem install asciidoctor
+ - which asciidoctor || true
+ - type asciidoctor || true