Sdist -> bindist -> tests
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Fri, 27 Oct 2017 18:02:33 +0000 (19:02 +0100)
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Tue, 7 Nov 2017 10:22:20 +0000 (10:22 +0000)
.circleci/build.sh
.circleci/prepare-system.sh

index 74d5ea7..2cc1d0e 100755 (executable)
@@ -8,9 +8,6 @@ fail() {
   exit 1
 }
 
   exit 1
 }
 
-echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk
-echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk
-
 cat > mk/build.mk <<EOF
 V=1
 HADDOCK_DOCS=YES
 cat > mk/build.mk <<EOF
 V=1
 HADDOCK_DOCS=YES
@@ -25,11 +22,28 @@ export SKIP_PERF_TESTS=YES
 export VERBOSE=2
 
 function run_build() {
 export VERBOSE=2
 
 function run_build() {
+    mk/get-win32-tarballs.sh download all
+    ./boot
+    ./configure "$@"
+    make sdist
+    mkdir -p sdist-build-dir
+    pushd sdist-build-dir
+    shopt -s extglob
+    tar xvfJ ../sdistprep/ghc-*+([[:digit:]])-src.tar.xz sdist-build-dir
+    cd ghc-*
     ./boot
     ./configure "$@"
     make -j$THREADS
     ./boot
     ./configure "$@"
     make -j$THREADS
-    make test
     make binary-dist
     make binary-dist
+    popd
+    mkdir -p bdist-test-dir
+    pushd bdist-test-dir
+    tar xvfJ ../sdist-build-dir/ghc-*/ghc-*.tar.xz
+    tar xvfJ ../sdistprep/ghc*testsuite.tar.xz
+    cd ghc-*
+    ./configure
+    # TODO: JUnit formatting for pretty CircleCI thing.
+    make test
 }
 
 case "$(uname)" in
 }
 
 case "$(uname)" in
index 5d4d630..7cf1a05 100755 (executable)
@@ -14,7 +14,10 @@ case "$(uname)" in
         # cross-compiling to FreeBSD
         add-apt-repository -y ppa:hvr/ghc
         apt-get update -qq
         # cross-compiling to FreeBSD
         add-apt-repository -y ppa:hvr/ghc
         apt-get update -qq
-        apt-get install -qy ghc-8.0.2 cabal-install  alex happy ncurses-dev git openssh-client make automake autoconf gcc perl python3 texinfo xz-utils
+        apt-get install -qy \
+                ghc-8.0.2 cabal-install alex happy ncurses-dev git \
+                openssh-client make automake autoconf gcc perl \
+                python3 texinfo xz-utils xutils-dev curl
         cabal update
         cabal install --reinstall hscolour
         ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
         cabal update
         cabal install --reinstall hscolour
         ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
@@ -24,7 +27,9 @@ case "$(uname)" in
     else
       # assuming Ubuntu
       apt-get update -qq
     else
       # assuming Ubuntu
       apt-get update -qq
-      apt-get install -qy git openssh-client make automake autoconf gcc perl python3 texinfo xz-utils
+      apt-get install -qy \
+              git openssh-client make automake autoconf gcc perl python3 \
+              texinfo xz-utils xutils-dev curl
       cabal update
       cabal install --reinstall hscolour
     fi
       cabal update
       cabal install --reinstall hscolour
     fi