forked from bisdn/basebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (21 loc) · 990 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
dist: trusty
language: cpp
sudo: required
services:
- docker
env:
- BUILDER="docker.io/toanju/builder:28" RELVER=28
before_install:
- docker pull $BUILDER
script:
- docker run -v "$PWD":/workdir:Z --rm --name builder -dti $BUILDER /bin/bash
- docker exec builder find . -regex '.*\.\(hh?\|cc?\|hpp\|cpp\)$' | xargs docker exec builder clang-format -i -style=file -fallback-style=llvm
- docker exec builder git diff --exit-code
- docker exec builder dnf -y copr --releasever $RELVER enable bisdn/rofl
- docker exec builder dnf -y copr --releasever $RELVER enable bisdn/rofl-testing
- docker exec builder dnf -y copr --releasever $RELVER enable bisdn/baseboxd
- docker exec builder dnf -y copr --releasever $RELVER enable bisdn/baseboxd-testing
- docker exec builder make -C ./pkg/testing/rpm/ spec
- docker exec builder dnf -y builddep --releasever $RELVER ./pkg/testing/rpm/baseboxd.spec
- docker exec builder meson build
- docker exec builder ninja -C build