-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.travis.yml
45 lines (45 loc) · 1.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: python
python: 2.7
sudo: false
env:
- LUA="lua=5.1" LUAC="luac5.1"
addons:
apt:
packages:
- liblua5.1-bitop0
- jq
before_install:
- pip install hererocks
- hererocks lua_install -r^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin
install:
- luarocks install luacheck
- luarocks install mockagne 1.0
- luarocks install luaunit
- luarocks install luabitop
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
- luarocks install luadoc
script:
- luacheck --no-max-line-length --no-global --no-unused --allow-defined --std max+busted GSE/API/*.lua
- luacheck --no-max-line-length --no-global --no-unused --allow-defined --std max+busted GSE/Localization/*.lua
- luacheck --no-max-line-length --no-global --no-unused --allow-defined --std max+busted GSE_GUI/*.lua
- luacheck --no-max-line-length --no-global --no-unused --allow-defined --std max+busted GSE_LDB/*.lua
- luacheck --no-max-line-length --no-global --no-unused --allow-defined --std max+busted GSE/SampleMacros.lua
- bash ./deploy.sh
- busted --verbose --coverage
- mkdir .release
after_success:
- luacov-coveralls -r ./GSE/
- curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash; if [[ $? != 0 ]]; then TRAVIS_TEST_RESULT=1; fi
- curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -g classic -m .pkgmeta -w 25155; if [[ $? != 0 ]]; then TRAVIS_TEST_RESULT=1; fi
- curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash -s -- -g bcc -m .pkgmeta -w 0; if [[ $? != 0 ]]; then TRAVIS_TEST_RESULT=1; fi
notifications:
email:
on_failure: always
on_success: change
cache:
apt: true
directories:
- "$HOME/.luarocks"