wire/.travis.yml
AbigailBuccaneer 9ae1f5504f Fix all whitespace errors
Now nobody's commit should be flagged by Travis unless it actually
introduces whitespace errors (which we do want to check for).

This doesn't fully sort out indentation everywhere, but does fix all
whitespace that Git doesn't like. You can check the whitespace across
the entire codebase with:

    git diff-tree --check "$(git hash-object -t tree /dev/null)" HEAD
2018-02-02 00:02:28 +00:00

45 lines
1.3 KiB
YAML

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 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
before_deploy:
- curl -L "https://github.com/AbigailBuccaneer/gmad-build/releases/download/v20180201/gmad_linux" -o "$HOME/gmad_linux"
- chmod +x "$HOME/gmad_linux"
- $HOME/gmad_linux create -folder . -out wiremod.gma
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: EK1zfysVaXMB52mfDlPFwaqM7zGJE/G1iFKyjWMV20GDqZkE9/g+KlwwaRuz7q0NX0KgGuc7dk5j0JQXTg3Z14kUYdIYSq3tDkp0YBeePqVGUgQoA19ZFPlBdZEV0EF3dDHMYmErNYBuCYW7Twrzy++WgzghCcthXaV9jboF5lk=
file: wiremod.gma
on:
repo: wiremod/wire
tags: true