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 2016/08/26 17:30:34 UTC
[6/6] lucy-clownfish git commit: Add Python bindings to CI tests
Add Python bindings to CI tests
The Travis tests are still disabled. Compiling _clownfish.c fails
because the GCC version doesn't default to C99.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/8c6d95a3
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/8c6d95a3
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/8c6d95a3
Branch: refs/heads/master
Commit: 8c6d95a34e956e034fa86b1163218bc7ce723ea1
Parents: 6a5fed4
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Fri Aug 26 19:03:40 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Fri Aug 26 19:23:22 2016 +0200
----------------------------------------------------------------------
.travis.yml | 27 +++++++++++++++++----------
appveyor.yml | 3 ++-
devel/bin/appveyor-build.bat | 17 +++++++++++++++++
devel/bin/travis-test.sh | 10 ++++++++++
4 files changed, 46 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/8c6d95a3/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 88aafc4..7bd87b7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,16 +18,23 @@ sudo: false
# Override Travis' default Perl installation script.
install: 'true'
script: devel/bin/travis-test.sh
-env:
- - CLOWNFISH_HOST=c
- - CLOWNFISH_HOST=go
- - CLOWNFISH_HOST=perl PERL_VERSION=5.20-extras
- - CLOWNFISH_HOST=perl PERL_VERSION=5.18-extras
- - CLOWNFISH_HOST=perl PERL_VERSION=5.16
- - CLOWNFISH_HOST=perl PERL_VERSION=5.14
- - CLOWNFISH_HOST=perl PERL_VERSION=5.12
- - CLOWNFISH_HOST=perl PERL_VERSION=5.10
- - CLOWNFISH_HOST=perl PERL_VERSION=5.8
+matrix:
+ include:
+ - env: CLOWNFISH_HOST=c
+ - env: CLOWNFISH_HOST=go
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.20-extras
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.18-extras
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.16
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.14
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.12
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.10
+ - env: CLOWNFISH_HOST=perl PERL_VERSION=5.8
+# - env: CLOWNFISH_HOST=python
+# addons:
+# apt:
+# packages:
+# - python3
+# - python3-dev
git:
depth: 10
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/8c6d95a3/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
index 277e2af..5a53d05 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -15,6 +15,8 @@
environment:
matrix:
+ - CLOWNFISH_HOST: python
+ - CLOWNFISH_HOST: perl
- CLOWNFISH_HOST: c
BUILD_ENV: msys2
MSYSTEM: MINGW64
@@ -26,7 +28,6 @@ environment:
- CLOWNFISH_HOST: c
BUILD_ENV: msvc
MSVC_VERSION: 12
- - CLOWNFISH_HOST: perl
build: off
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/8c6d95a3/devel/bin/appveyor-build.bat
----------------------------------------------------------------------
diff --git a/devel/bin/appveyor-build.bat b/devel/bin/appveyor-build.bat
index 46e2bf7..4300418 100644
--- a/devel/bin/appveyor-build.bat
+++ b/devel/bin/appveyor-build.bat
@@ -17,6 +17,7 @@ rem limitations under the License.
if "%CLOWNFISH_HOST%" == "c" goto test_c
if "%CLOWNFISH_HOST%" == "perl" goto test_perl
+if "%CLOWNFISH_HOST%" == "python" goto test_python
echo unknown CLOWNFISH_HOST: %CLOWNFISH_HOST%
exit /b 1
@@ -83,3 +84,19 @@ perl Build.PL && call Build && call Build test
exit /b
+:test_python
+
+path C:\Python35-x64;%path%
+python -V
+
+set DISTUTILS_USE_SDK=1
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
+
+cd compiler\python
+python setup.py test || exit /b
+
+cd ..\..\runtime\python
+python setup.py test
+
+exit /b
+
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/8c6d95a3/devel/bin/travis-test.sh
----------------------------------------------------------------------
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index 8251caf..a41c7e6 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -55,6 +55,13 @@ test_go() {
go run build.go test
}
+test_python() {
+ cd compiler/python
+ python3 setup.py test
+ cd ../../runtime/python
+ python3 setup.py test
+}
+
case $CLOWNFISH_HOST in
perl)
test_perl
@@ -65,6 +72,9 @@ case $CLOWNFISH_HOST in
go)
test_go
;;
+ python)
+ test_python
+ ;;
*)
echo "unknown CLOWNFISH_HOST: $CLOWNFISH_HOST"
exit 1