OSDN Git Service

Fix .travis.yml to test perl and python.
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 15 Mar 2012 21:48:26 +0000 (06:48 +0900)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 15 Mar 2012 21:59:30 +0000 (06:59 +0900)
.travis.yml
Makefile

index e6f18fb..aa13ac2 100644 (file)
@@ -1,4 +1,5 @@
-script: "make test"
+language: c
+script: "make test && make perl && make python2"
 
 branches:
   only:
index 9bd986c..8e6bc51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ RM = rm -rf
 VERSION = 2.1.2
 MKDIR = mkdir
 prefix = /usr/local
+PYTHON2 = python
+PYTHON3 = python
 
 .PHONY: clean install test tar shar
 
@@ -33,6 +35,14 @@ perl:
        make ; \
        make test )
 
+python2:
+       ( cd NKF.python2 ; \
+       $(PYTHON2) setup.py install )
+
+python3:
+       ( cd NKF.python2 ; \
+       $(PYTHON3) setup.py install )
+
 install:
        -$(MKDIR) $(prefix)/bin
        -$(MKDIR) $(prefix)/man