File tree Expand file tree Collapse file tree 3 files changed +13
-35
lines changed Expand file tree Collapse file tree 3 files changed +13
-35
lines changed Original file line number Diff line number Diff line change 11dist : trusty
22sudo : false
33
4- language : node_js
4+ addons :
5+ apt :
6+ packages :
7+ - lua5.2
8+
9+ language : c
510
6- before_install :
7- - npm install -g luamin
8- - git checkout ./bin/travis-test.sh
911install :
10- - ./bin/travis-test.sh
12+
13+ script : ./bin/build.sh
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ for f in ${MANIFEST[@]};
1717do
1818 SRC_NAME=$f
1919 OBJ_NAME=$( dirname ${f} ) /$( basename ${f} .lua) .luac
20- node -e " var luac = require('luac'); luac.buildToFileSync('${SRC_NAME} ', '${OBJ_NAME} ');"
20+ echo -e " Compiling file \e[1m${SRC_NAME} \e[21m..." || \
21+ luac -o ${OBJ_NAME} ${SRC_NAME} || \
22+ echo -e " \e[1m\e[39m[\e[31mBUILD FAILED\e[39m]\e[21m Compilation error in file \e[1m${SRC_NAME} \e[21m!" || \
23+ exit 1
2124done
2225
26+ echo -e " \e[1m\e[39m[\e[32mTEST SUCCESSFUL\e[39m]\e[21m All lua files built successfully!"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments