Skip to content

Commit bd63e60

Browse files
committed
updated tests and .travis.yml for greatness!
1 parent 0ea5148 commit bd63e60

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ braches:
1414
only:
1515
- master
1616

17-
script:
18-
- bash travis.sh
17+
build_cmd: &build_cmd
18+
- ./travis.sh
19+
20+
before_script:
21+
- chmod +x travis.sh
22+
- chmod +x build.sh
23+
- chmod +x prereqs.sh
24+
25+
jobs:
26+
include:
27+
- stage: build
28+
script: *build_cmd
29+
os: linux
30+
- stage: build
31+
script: *build_cmd
32+
os: osx
1933

2034
after_success:
2135
- echo "Build and tests successful"

travis.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,34 @@ pushd bin/Debug
7070

7171
echo "Test 5"
7272
./luaw -w lua-5.1.5 -e "print('Everything went okay')"
73+
74+
echo "Test 6"
75+
./luaw "res/testing.lua" -Dtest=5 -n a b c
76+
77+
echo "Test 7"
78+
./luaw -c -o testing.luac "res/testing.lua"
79+
./luaw testing.luac -Dtest=5 -n a b c
80+
81+
echo "Test 8"
82+
./luaw -w luajit -c -o testing.luac "res/testing.lua"
83+
./luaw -w luajit -ltesting.luac -Dtest=5 -n a b c
84+
echo "Test 8 end"
85+
86+
echo "Test 9"
87+
./luaw -w lua-5.3.5 -c -o testing.luac "res/testing.lua"
88+
./luaw -w lua-5.3.5 -ltesting.luac -Dtest=5 -n a b c
89+
echo "Test 9 end"
90+
91+
echo "Test 10"
92+
./luaw -w lua-5.2.4 -c -o testing.luac "res/testing.lua"
93+
./luaw -w lua-5.2.4 -ltesting.luac -Dtest=5 -n a b c
94+
echo "Test 10 end"
95+
96+
echo "Test 11"
97+
./luaw -w lua-5.1.5 -c -o testing.luac "res/testing.lua"
98+
./luaw -w lua-5.1.5 -ltesting.luac -Dtest=5 -n a b c
99+
echo "Test 11 end"
100+
73101
popd
74102

75103
# Code coverage

0 commit comments

Comments
 (0)