summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-06 09:37:33 +0800
committerruki <[email protected]>2016-01-06 09:37:33 +0800
commitc4a21d88093044a5b42660d62c9eee1f2db7fc55 (patch)
tree20671b6231ddbe6485bc440e913c60aed666cd82
parente8c79d49cde893547e5e7346e9ae1203b03794f8 (diff)
add .travis.yml
-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