-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
51 lines (41 loc) · 1.03 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
46
47
48
49
50
51
version: ~> 1.0
language: python
os: linux
dist: bionic
env:
global:
- DISPLAY=fake
jobs:
- LUA="luajit latest"
- LUA="lua 5.2"
- LUA="lua 5.3"
branches:
only:
- nix-flake
- travis-ci
- master
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libglib2.0-dev libgirepository1.0-dev libffi-dev dbus dbus-x11
- pip install hererocks
- hererocks ~/hererocks -r^ --$LUA
- export PATH=$PATH:~/hererocks/bin
- eval `luarocks path --bin`
- lua -v
- luarocks install luacheck
- luarocks install luacov
- luarocks install busted
install:
- luarocks install --only-deps rockspec/dbus_proxy-devel-1.rockspec
before_script:
- export $(dbus-launch)
- dbus-send --print-reply --session --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames
script:
- luacheck .
- busted --exclude-tags=skipci .
- busted --exclude-tags=skipci --coverage .
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.cache/hererocks