ruby-changes:39624
From: naruse <ko1@a...>
Date: Thu, 27 Aug 2015 14:50:58 +0900 (JST)
Subject: [ruby-changes:39624] naruse:r51705 (trunk): try to run travis without sudo to run in container
naruse 2015-08-27 14:50:36 +0900 (Thu, 27 Aug 2015) New Revision: 51705 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51705 Log: try to run travis without sudo to run in container http://docs.travis-ci.com/user/migrating-from-legacy/ Modified files: trunk/.travis.yml Index: .travis.yml =================================================================== --- .travis.yml (revision 51704) +++ .travis.yml (revision 51705) @@ -35,16 +35,16 @@ os: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L35 # far since the 1.9.1 release. before_install: - "CONFIG_FLAG=" - - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq update; fi" + #- "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq update; fi" # Travis ships an outdated, broken version of libssl by default - - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq --only-upgrade install '^libssl.*'; fi" - - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq install $CC; fi" # upgrade if any + #- "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq --only-upgrade install '^libssl.*'; fi" + #- "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq install $CC; fi" # upgrade if any - "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then JOBS='-j'; fi" - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then brew install autoconf gdbm openssl; fi" - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then CONFIG_FLAG=\"$CONFIG_FLAG --with-gdbm-dir=`brew --prefix gdbm`\"; fi" - "if [[ $TRAVIS_OS_NAME = 'osx' ]]; then CONFIG_FLAG=\"$CONFIG_FLAG --with-openssl-dir=`brew --prefix openssl`\"; fi" - "if [[ $TRAVIS_OS_NAME = 'osx' && $CC = 'gcc' ]]; then CC='gcc-4.9'; fi" -install: "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq build-dep ruby1.9.1 2>/dev/null; fi" +#install: "if [[ $TRAVIS_OS_NAME = 'linux' ]]; then sudo apt-get -qq build-dep ruby1.9.1 2>/dev/null; fi" # Script is where the test runs. Note we just do "make test", not other tests # like test-all, test-rubyspec. This is because they take too much time, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/