Skip to content

Commit

Permalink
remove sudo from Travis in order to use containers, see #427
Browse files Browse the repository at this point in the history
  • Loading branch information
danse authored and luite committed Oct 27, 2015
1 parent d7854b5 commit 026089b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Expand Up @@ -4,14 +4,22 @@ env:
- GHCVER=7.10.2 TEST_PART=PROFILING
- GHCVER=7.10.2 TEST_PART=GHCJS

addons:
apt:
sources:
- hvr-ghc
packages:
- build-essential
- nodejs
- cabal-install-1.22
- ghc-7.10.2
- alex-3.1.4
- happy-1.19.5

before_install:
- export GHCJS_BOOTING=1
- export GHCJS_BOOTING_STAGE1=1
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get build-dep ghc
- travis_retry sudo apt-get install nodejs cabal-install-1.22 ghc-$GHCVER alex-3.1.4 happy-1.19.5
- nvm install 4
- export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.5/bin:$PATH

install:
Expand All @@ -31,3 +39,5 @@ notifications:
channels: "irc.freenode.net#ghcjs"
skip_join: true
email: true

sudo: false
2 changes: 1 addition & 1 deletion test/runTravis.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

NODE="nodejs"
NODE="node"
PART="$TEST_PART"
CABAL="cabal"
GHCJSBOOT="ghcjs-boot"
Expand Down

0 comments on commit 026089b

Please sign in to comment.