summaryrefslogtreecommitdiff
path: root/.appveyor.sh
diff options
context:
space:
mode:
authormrkkrp <markkarpov92@gmail.com>2018-03-27 21:30:01 +0700
committerBen Gamari <ben@smart-cactus.org>2018-03-29 12:02:48 -0400
commit0951e03efe9492b01cea3bf59a7cb4a3baaea8bd (patch)
tree10e3d5c4260671a46057f6165125c337e3f7a142 /.appveyor.sh
parentd06a5a9d435b048031aafe8ff6d7a740260a3e84 (diff)
downloadhaskell-0951e03efe9492b01cea3bf59a7cb4a3baaea8bd.tar.gz
Full AppVeyor build with tests
Diffstat (limited to '.appveyor.sh')
-rw-r--r--.appveyor.sh26
1 files changed, 4 insertions, 22 deletions
diff --git a/.appveyor.sh b/.appveyor.sh
index b7fde233cf..97d0fdb15d 100644
--- a/.appveyor.sh
+++ b/.appveyor.sh
@@ -1,8 +1,8 @@
# Configure the environment
MSYSTEM=MINGW64
-THREADS=3
+THREADS=9
SKIP_PERF_TESTS=YES
-BUILD_FLAVOUR=quick
+BUILD_FLAVOUR=
source /etc/profile || true # a terrible, terrible workaround for msys2 brokenness
# Don't set -e until after /etc/profile is sourced
@@ -11,45 +11,27 @@ cd $APPVEYOR_BUILD_FOLDER
case "$1" in
"prepare")
- # Bring msys up-to-date
- # However, we current don't do this: generally one must restart all
- # msys2 processes when updating the msys2 runtime, which this may do. We can't
- # easily do this and therefore do simply don't update.
- #pacman --noconfirm -Syuu
-
- # Install basic build dependencies
- pacman --noconfirm -S --needed git tar bsdtar binutils autoconf make xz curl libtool automake python python2 p7zip patch mingw-w64-$(uname -m)-python3-sphinx mingw-w64-$(uname -m)-tools-git
-
# Prepare the tree
git config remote.origin.url git://github.com/ghc/ghc.git
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
git submodule init
git submodule --quiet update --recursive
-
- # Install build dependencies
- wget -q -O - https://downloads.haskell.org/~ghc/8.2.1/ghc-8.2.1-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1
- mkdir -p /usr/local/bin
- wget -q -O - https://www.haskell.org/cabal/release/cabal-install-1.24.0.0/cabal-install-1.24.0.0-x86_64-unknown-mingw32.zip | bsdtar -xzf- -C /usr/local/bin
- cabal update
- cabal install -j --prefix=/usr/local alex happy
;;
-
"build")
# Build the compiler
./boot
- ./configure --enable-tarballs-autodownload
cat <<EOF >> mk/build.mk
BuildFlavour=$BUILD_FLAVOUR
ifneq "\$(BuildFlavour)" ""
include mk/flavours/\$(BuildFlavour).mk
endif
EOF
+ ./configure --enable-tarballs-autodownload
make -j$THREADS
;;
"test")
- # This does not finish in time.
- # make fasttest THREADS=$THREADS
+ make test THREADS=$THREADS
make binary-dist
7z a ghc-windows.zip *.tar.xz
;;