forked from JonasJurczok/factorio-todo-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (23 loc) · 970 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
before_install:
- sudo apt-get update
- sudo apt-get install build-essential curl wget unzip git openssl lua5.2 lua5.2-dev libev-dev libjs-jquery -y
- wget -O /tmp/luarocks.zip https://github.com/keplerproject/luarocks/archive/v3.0.1.zip
- unzip /tmp/luarocks.zip -d /tmp
- (cd /tmp/luarocks-3.0.1 && ./configure --prefix=/usr --lua-version=5.2)
- make -C /tmp/luarocks-3.0.1 build
- sudo make -C /tmp/luarocks-3.0.1 install
- sudo luarocks install serpent
- sudo luarocks install busted
- sudo luarocks install luacheck
- sudo luarocks install faketorio
script:
- luacheck ./src/*.lua --globals todo mod_gui script game defines data serpent settings global
- luacheck ./src/todo/*.lua --globals todo mod_gui script game defines data serpent settings global
- faketorio package -c .travis/.faketorio -v
deploy:
provider: releases
api_key: "${TOKEN}"
file: "target/Todo-List_${TRAVIS_TAG}.zip"
skip_cleanup: true
on:
tags: true