From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 634006DE135A for ; Tue, 22 Aug 2017 15:44:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.035 X-Spam-Level: X-Spam-Status: No, score=0.035 tagged_above=-999 required=5 tests=[AWL=-0.195, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P4sg6c5ZXMxq for ; Tue, 22 Aug 2017 15:44:30 -0700 (PDT) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by arlo.cworth.org (Postfix) with ESMTPS id 6CA0E6DE1349 for ; Tue, 22 Aug 2017 15:44:22 -0700 (PDT) Received: by mail-wm0-f43.google.com with SMTP id l19so3592880wmi.1 for ; Tue, 22 Aug 2017 15:44:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hwrGI7sLFTSpvEjH1tZ9v5jPhMWa2yrqWDjTC/RnzSk=; b=ZvGhbKm5+hsniRtUFi7wsha02xdWd/BBeM0KvPMReKfKksEWJ95Es7DUl16jB6Bbup ftbIr7+6lgTRpIb+NrWVW0fzN+9hLt8KnRZ7TKJ0hD32B6iURh5vinMVIptFdlCbKZuT A2YKLejK+2KEFmU5/4/sve5wK2KwZGD+vH33jWcomfmtXZiC8ekheh4CQ2AqEcKuZfTc JbzCDUc4WAD+SnGKSzNKS98/JrvX8iGj3JiYvZD3QtH3UiMA4ZO90zMyIVhU0b4okawq GVKdJit4TL48FSsE2UiarsdGMxkky4HrBlW+742XI9pFf1ZhbFM+8pWQ8K3ccdXix9yb Zpqw== X-Gm-Message-State: AHYfb5gO+ZR9qIIajE8YazGqFWH6j46VgZ+zz6tpFGsE+omqbl/+vAor zxo6Hn9d8dpFcgEVTGE= X-Received: by 10.28.47.142 with SMTP id v136mr515298wmv.59.1503441860044; Tue, 22 Aug 2017 15:44:20 -0700 (PDT) Received: from home.thecybershadow.net ([89.28.117.31]) by smtp.gmail.com with ESMTPSA id e137sm491385wma.29.2017.08.22.15.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 15:44:19 -0700 (PDT) From: Vladimir Panteleev To: notmuch@notmuchmail.org Cc: Vladimir Panteleev Subject: [PATCH 8/8] Add AppVeyor CI configuration and test script Date: Tue, 22 Aug 2017 22:43:39 +0000 Message-Id: <20170822224339.22601-9-notmuch@thecybershadow.net> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170822224339.22601-1-notmuch@thecybershadow.net> References: <20170822224339.22601-1-notmuch@thecybershadow.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2017 22:44:31 -0000 From: Vladimir Panteleev At the time of writing, this successfully builds notmuch and runs the test suite, with 550/793 tests passing. Whether or not actually testing on AppVeyor is desirable, the test script illustrates a verifiably working method to build notmuch on Windows/Cygwin. --- appveyor.yml | 7 +++++++ devel/appveyor.sh | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 appveyor.yml create mode 100644 devel/appveyor.sh diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..b4ab6262 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,7 @@ +build_script: + # Update the CygWin installer + - C:\cygwin64\bin\wget.exe -O /cygdrive/c/cygwin64/setup-x86_64.exe https://cygwin.com/setup-x86_64.exe + # Update all packages and install dependencies + - C:\cygwin64\setup-x86_64.exe --quiet-mode --upgrade-also --packages gcc-core,gcc-g++,make,python2,python2-devel,libxapian-devel,libgmime2.6-devel,libiconv-devel,docbook-xsl,libxslt,libxml2,zlib-devel + # Run our script + - C:\cygwin64\bin\bash.exe -l %CD%/devel/appveyor.sh diff --git a/devel/appveyor.sh b/devel/appveyor.sh new file mode 100644 index 00000000..651f91f2 --- /dev/null +++ b/devel/appveyor.sh @@ -0,0 +1,39 @@ +#!/bin/bash +set -xeuo pipefail +shopt -s lastpipe + +# Test script for the AppVeyor CI service. +# Ran from ../appveyor.yml. +# Runs under CygWin bash. + +# Reset PATH variable inherited from Windows environment +export PATH=/usr/local/bin:/usr/bin:/bin + +# Set correct working directory +cd "$(dirname "$0")"/.. + +# Download talloc +test -f talloc-2.1.10.tar.gz || wget https://www.samba.org/ftp/talloc/talloc-2.1.10.tar.gz +rm -rf talloc-2.1.10 +tar zxvf talloc-2.1.10.tar.gz + +# Build/install talloc +( + cd talloc-2.1.10 + ./configure --prefix=/usr --disable-python + make || true # fails at linking - fix problem and resume build + ln -s cygtalloc-2.dll bin/default/talloc.dll + ln -s cygtalloc-2.dll bin/default/cygtalloc.dll + make + make install +) + +./configure + +# Windows PE loader doesn't understand Cygwin symlinks +cp -L /usr/lib/cygtalloc.dll cygtalloc-2.dll + +make +make test + +"$@" -- 2.13.3