Commit b7fff3b6 authored by Zhen Zhang's avatar Zhen Zhang Committed by Andrey Mokhov

Make OS X build faster and Add GHC 8.0.2 build on Travis CI (#370)

parent 061dcf1f
sudo: true
language: haskell
matrix:
include:
- os: linux
env: MODE="--flavour=quickest"
compiler: "GHC 8.0.2"
addons:
apt:
packages:
- ghc-8.0.2
- cabal-install-2.0
- zlib1g-dev
sources: hvr-ghc
before_install:
- PATH="/opt/ghc/8.0.2/bin:$PATH"
- PATH="/opt/cabal/2.0/bin:$PATH"
script:
# Run internal Hadrian tests
- ./build.sh selftest
# Build GHC
- ./build.sh -j $MODE --verbose --no-progress --progress-colour=never --progress-info=brief --profile=-
# Test GHC binary
- cd ..
- inplace/bin/ghc-stage2 -e 1+2
- os: linux
env: MODE="--flavour=quickest"
compiler: "GHC 7.10.3"
addons:
apt:
packages:
......@@ -11,17 +38,33 @@ matrix:
- cabal-install-1.22
- zlib1g-dev
sources: hvr-ghc
before_install:
- PATH="/opt/ghc/7.10.3/bin:$PATH"
- PATH="/opt/cabal/1.22/bin:$PATH"
script:
# Run internal Hadrian tests
- ./build.sh selftest
# Build GHC
- ./build.sh -j $MODE --verbose --no-progress --progress-colour=never --progress-info=brief --profile=-
# Test GHC binary
- cd ..
- inplace/bin/ghc-stage2 -e 1+2
- os: osx
osx_image: xcode8
env: MODE="--flavour=quickest --integer-simple"
before_install:
- brew update
- brew install ghc cabal-install
-
script:
# Due to timeout limit of OS X build on Travis CI,
# we will ignore selftest and build only stage1
- ./build.sh -j $MODE --verbose --no-progress --progress-colour=never --progress-info=brief --profile=- inplace/bin/ghc-stage1
install:
# Add Cabal to PATH
......@@ -50,17 +93,6 @@ install:
- cd ghc/hadrian
- git reset --hard HEAD
script:
# Run internal Hadrian tests
- ./build.sh selftest
# Build GHC
- ./build.sh -j $MODE --verbose --no-progress --progress-colour=never --progress-info=brief --profile=-
# Test GHC binary
- cd ..
- inplace/bin/ghc-stage2 -e 1+2
cache:
directories:
- $HOME/.cabal
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment