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 1
1
dist : trusty
2
2
sudo : false
3
3
4
- language : node_js
4
+ addons :
5
+ apt :
6
+ packages :
7
+ - lua5.2
8
+
9
+ language : c
5
10
6
- before_install :
7
- - npm install -g luamin
8
- - git checkout ./bin/travis-test.sh
9
11
install :
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[@]};
17
17
do
18
18
SRC_NAME=$f
19
19
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
21
24
done
22
25
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