forked from wiremod/wire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (23 loc) · 826 Bytes
/
.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
dist: trusty
sudo: false
language: c
branches:
only:
- master
cache:
directories:
- $HOME/env
notifications:
email: false
before_install:
- pip install --user hererocks
- hererocks $HOME/env --luajit 2.0.3 --luarocks latest
- source $HOME/env/bin/activate
install:
- luarocks show lanes > /dev/null || luarocks install lanes
- luarocks show luacheck > /dev/null || luarocks install luacheck
- luarocks list --outdated --porcelain | awk '{ print $1, $3 }' | xargs --no-run-if-empty -n 2 luarocks install
script:
- git -c core.whitespace=-blank-at-eol,-blank-at-eof,-space-before-tab diff --check $TRAVIS_COMMIT_RANGE
- git diff --name-only $TRAVIS_COMMIT_RANGE | grep '\.lua$' | grep -v '^lua/entities/gmod_wire_expression2/core/' | xargs --no-run-if-empty luacheck
- luacheck .luacheckrc