You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2015/05/20 16:07:02 UTC

[6/6] lucy-clownfish git commit: Initial AppVeyor config and build script

Initial AppVeyor config and build script

As for now, it seems to be impossible to build XS-based projects with
the stock Perl on AppVeyor. They have ActivePerl 5.20 installed, but
for some reason, $Config{cc} is undefined. Also, gcc is not preinstalled.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/48942107
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/48942107
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/48942107

Branch: refs/heads/master
Commit: 489421076b667bcea92d8b5f2fd471be3cea5698
Parents: ca0625e
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Wed May 20 01:41:13 2015 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed May 20 14:59:43 2015 +0200

----------------------------------------------------------------------
 appveyor.yml                 | 12 ++++++++++++
 devel/bin/appveyor-build.bat | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/48942107/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..82a82cc
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,12 @@
+environment:
+  global:
+    LUCY_DEBUG: 1
+  matrix:
+    - CLOWNFISH_HOST: c
+#    - CLOWNFISH_HOST: perl
+
+build: off
+
+test_script:
+  - 'devel\bin\appveyor-build.bat'
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/48942107/devel/bin/appveyor-build.bat
----------------------------------------------------------------------
diff --git a/devel/bin/appveyor-build.bat b/devel/bin/appveyor-build.bat
new file mode 100644
index 0000000..0e009b9
--- /dev/null
+++ b/devel/bin/appveyor-build.bat
@@ -0,0 +1,32 @@
+@echo off
+
+if "%CLOWNFISH_HOST%" == "c" goto test_c
+if "%CLOWNFISH_HOST%" == "perl" goto test_perl
+
+echo unknown CLOWNFISH_HOST: %CLOWNFISH_HOST%
+exit /b 1
+
+:test_c
+
+call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
+
+cd compiler\c
+call configure && nmake && nmake test || exit /b
+
+cd ..\..\runtime\c
+call configure && nmake && nmake test
+
+exit /b
+
+:test_perl
+
+perl -V
+
+cd compiler\perl
+perl Build.PL && call Build && call Build test || exit /b
+
+cd ..\..\runtime\perl
+perl Build.PL && call Build && call Build test
+
+exit /b
+