Skip to content

Commit 1c217d2

Browse files
committed
Changed travis build to compile lua files.
1 parent 8bbc53e commit 1c217d2

File tree

3 files changed

+10
-35
lines changed

3 files changed

+10
-35
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
dist: trusty
22
sudo: 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
911
install:
10-
- ./bin/travis-test.sh
12+
13+
script: ./bin/build.sh

bin/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ for f in ${MANIFEST[@]};
1717
do
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+
luac -o ${OBJ_NAME} ${SRC_NAME} || exit 1
2121
done
2222

23+
echo -e "\e[1m\e[39m[\e[31mTEST SUCCESSFUL\e[39m]\e[21m All lua files built successfully!"

package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)