Skip to content

Commit

Permalink
Travis CI + SystemD (Coffee2CodeNL#3)
Browse files Browse the repository at this point in the history
* Travis CI
* Add systemd unit
  • Loading branch information
osleg authored Nov 6, 2019
1 parent d8d4853 commit b5c05d6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: c
compiler: gcc
os: linux
dist: xenial

before_install:
- docker build -t builder -f build.Dockerfile .

script:
- docker run --rm --device /dev/input -v /run/udev/data:/run/udev/data -v $(pwd):/workdir -w /workdir -it builder cmake .
- docker run --rm --device /dev/input -v /run/udev/data:/run/udev/data -v $(pwd):/workdir -w /workdir -it builder make

deploy:
provider: releases
file: "gebaard"
skip_cleanup: true
on:
repo: Coffee2CodeNL/gebaar-libinput
tags: true
api_key:
secure: "<todo>"
File renamed without changes.
10 changes: 10 additions & 0 deletions assets/gebaard.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Gebaar Daemon
Documentation=https://github.com/Coffee2CodeNL/gebaar-libinput

[Service]
ExecStart=/usr/local/bin/gebaard
Restart=always

[Install]
WantedBy=multi-user.target
7 changes: 7 additions & 0 deletions build.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:stretch

RUN set -ex; \
echo 'deb http://http.us.debian.org/debian/ testing non-free contrib main' > /etc/apt/sources.list.d/debian-testing.list; \
apt-get update -q; \
apt-get install -y git gcc-8 curl make cmake build-essential libinput-dev zlib1g-dev libinput-tools libsystemd-dev

0 comments on commit b5c05d6

Please sign in to comment.