Simplify .travis.yml (#719)

pull/676/head
Jan Beich 2020-05-24 17:05:44 +00:00 committed by GitHub
parent 2ffc96d0b2
commit 2585360a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 26 deletions

View File

@ -1,15 +1,23 @@
language: cpp
services:
- docker
git: git:
submodules: false submodules: false
_linux_shared: &linux_shared env:
os: linux - distro: debian
sudo: false - distro: archlinux
services: - distro: fedora
- docker - distro: alpine
before_install: - distro: opensuse
before_install:
- docker pull alexays/waybar:${distro} - docker pull alexays/waybar:${distro}
- find . -type f \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -r0 clang-format -i - find . -type f \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -r0 clang-format -i
script:
script:
- echo FROM alexays/waybar:${distro} > Dockerfile - echo FROM alexays/waybar:${distro} > Dockerfile
- echo ADD . /root >> Dockerfile - echo ADD . /root >> Dockerfile
- docker build -t waybar . - docker build -t waybar .
@ -17,21 +25,10 @@ _linux_shared: &linux_shared
jobs: jobs:
include: include:
- <<: *linux_shared
env: distro=debian
- <<: *linux_shared
env: distro=archlinux
- <<: *linux_shared
env: distro=fedora
- <<: *linux_shared
env: distro=alpine
- <<: *linux_shared
env: distro=opensuse
- os: freebsd - os: freebsd
language: cpp
compiler: clang compiler: clang
sudo: required env:
install: before_install:
- sudo sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf - sudo sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
- sudo pkg install -y date gtk-layer-shell gtkmm30 jsoncpp libdbusmenu - sudo pkg install -y date gtk-layer-shell gtkmm30 jsoncpp libdbusmenu
libfmt libmpdclient libudev-devd meson pulseaudio scdoc spdlog libfmt libmpdclient libudev-devd meson pulseaudio scdoc spdlog