Add comments.
[ghc.git] / .travis.yml
index 1bcd7fd..9547914 100644 (file)
@@ -3,7 +3,7 @@ sudo: false
 matrix:
     include:
         - os: linux
-          env: CABALVER=1.22 GHCVER=7.10.3
+          env: CABALVER=1.22 GHCVER=7.10.3 TARGET=
           addons:
               apt:
                   packages:
@@ -21,6 +21,7 @@ matrix:
               - cabal update
 
         - os: osx
+          env: TARGET=utils/ghc-pkg/stage1/build/tmp/ghc-pkg
           before_install:
               - brew update
               - brew install ghc cabal-install
@@ -29,16 +30,19 @@ matrix:
               - PATH="$HOME/.cabal/bin:$PATH"
               - export PATH
 
-
 install:
-
     - env
     - ghc --version
     - cabal --version
     - alex --version
     - happy --version
 
-    - travis_retry git clone git://git.haskell.org/ghc --recurse-submodules
+    - git config --global url."git://github.com/ghc/packages-".insteadOf     git://github.com/ghc/packages/
+    - git config --global url."http://github.com/ghc/packages-".insteadOf    http://github.com/ghc/packages/
+    - git config --global url."https://github.com/ghc/packages-".insteadOf   https://github.com/ghc/packages/
+    - git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
+    - git config --global url."git@github.com:/ghc/packages-".insteadOf      git@github.com:/ghc/packages/
+    - travis_retry git clone https://github.com/ghc/ghc --recurse-submodules --depth 1
 
     # Travis clones the project into ".", but we need it as a child directory
     # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
@@ -49,13 +53,30 @@ install:
     - ( cd ghc/shake-build && git reset --hard HEAD )
 
     - ( cd ghc/shake-build && cabal install --only-dependencies )
+    - ( cd ghc/shake-build && cabal configure )
 
     - ( cd ghc && ./boot )
     - ( cd ghc && ./configure )
+    - cat ghc/shake-build/cfg/system.config
 
 script:
-    - ./ghc/shake-build/build.sh -j --no-progress
+    - ( cd ghc/shake-build && cabal haddock --internal )
+    - ./ghc/shake-build/build.sh selftest
+    - ./ghc/shake-build/build.sh -j --no-progress --profile=- --flavour=quick $TARGET
 
 cache:
     directories:
         - $HOME/.cabal
+        - $HOME/.ghc
+
+notifications:
+    irc:
+        on_success: change # always/never/change
+        on_failure: always
+        channels:
+            - "chat.freenode.net#shaking-up-ghc"
+        template:
+            - "#%{build_number} finished in %{duration}. %{message}"
+            - "Repo: %{repository_slug}, branch: %{branch}"
+            - "%{author}: %{commit_subject}"
+            - "Build details: %{build_url}"