Bläddra i källkod

Merge pull request #5 from viest/dev

travis
王杰新 7 år sedan
förälder
incheckning
767cb88b5b
3 ändrade filer med 33 tillägg och 2 borttagningar
  1. 29 0
      .travis.yml
  2. 2 2
      kernel/excel.c
  3. 2 0
      travis/compile.sh

+ 29 - 0
.travis.yml

@@ -0,0 +1,29 @@
+language: php
+
+compiler:
+  - gcc
+  - clang
+
+os:
+  - linux
+
+php:
+  - 7.0
+  - 7.1
+
+notifications:
+  email: [email protected]
+
+before_script:
+  - sudo apt-get install zlib1g-dev -y
+  - git clone https://github.com/jmcnamara/libxlsxwriter.git
+  - cd libxlsxwriter
+  - make && sudo make install
+  - ./travis/compile.sh
+
+branches:
+  only:
+    - dev
+
+script:
+  - exit 0

+ 2 - 2
kernel/excel.c

@@ -317,8 +317,8 @@ zend_function_entry excel_methods[] = {
         PHP_ME(vtiful_excel, data,        excel_data_arginfo,      ZEND_ACC_PUBLIC)
         PHP_ME(vtiful_excel, output,      NULL,                    ZEND_ACC_PUBLIC)
         PHP_ME(vtiful_excel, getHandle,   NULL,                    ZEND_ACC_PUBLIC)
-        PHP_ME(vtiful_excel, insertText,  excel_insert_text_arginfo,   ZEND_ACC_PUBLIC)
-        PHP_ME(vtiful_excel, insertImage, excel_insert_image_arginfo,  ZEND_ACC_PUBLIC)
+        PHP_ME(vtiful_excel, insertText,    excel_insert_text_arginfo,    ZEND_ACC_PUBLIC)
+        PHP_ME(vtiful_excel, insertImage,   excel_insert_image_arginfo,   ZEND_ACC_PUBLIC)
         PHP_ME(vtiful_excel, insertFormula, excel_insert_formula_arginfo, ZEND_ACC_PUBLIC)
         PHP_FE_END
 };

+ 2 - 0
travis/compile.sh

@@ -0,0 +1,2 @@
+#!/bin/sh
+phpize && ./configure && make clean && make