summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml10
-rwxr-xr-xinstall5
2 files changed, 14 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..380cf4cb7
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,10 @@
+sudo: required
+language: lua
+
+install:
+ - ./install
+
+script:
+ - xmake create -P ./test
+ - cd ./test
+ - xmake
diff --git a/install b/install
index e5d715893..27bb6663e 100755
--- a/install
+++ b/install
@@ -12,6 +12,7 @@ prefix=/usr/local
if [ $1 ] && [ -d $1 ]; then
prefix=$1
fi
+echo installing to $prefix ...
# probe plat
uname=`uname`
@@ -28,6 +29,7 @@ elif [ `uname | egrep -i cygwin` ]; then
else
plat=linux
fi
+echo plat: $plat
# probe arch
arch=x86
@@ -36,9 +38,10 @@ if [ $plat = "linux" ] || [ $plat = "mac" ]; then
arch=x64
fi
fi
+echo arch: $arch
# compile xmake-core
-echo compiling xmake-core...
+echo compiling xmake-core ...
cd ./core
if [ -f .config.mak ]; then
rm .config.mak