Skip to content

Commit

Permalink
Merge pull request #27 from francma/clang-format-travis
Browse files Browse the repository at this point in the history
Switch build CI environment to Alpine in chroot
  • Loading branch information
francma authored Jan 5, 2020
2 parents 5e8d8ec + 74c6f4f commit b187f16
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
os: linux
arch: arm64
arch: ppc64le
dist: bionic
language: python
sudo: required

addons:
apt:
packages:
- wayland-protocols
- ninja-build
- libwayland-dev
env:
global:
- APK_TOOLS_URI="https://github.com/alpinelinux/apk-tools/releases/download/v2.10.3/apk-tools-2.10.3-ppc64le-linux.tar.gz"
- APK_TOOLS_SHA256=75311787324dd56106b36d57cc33bcdacb8d089dbcd270669dab8d7eb76175d8

install:
- pip install meson
before_install:
- wget https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.11.0/alpine-chroot-install
- sudo sh ./alpine-chroot-install

script:
- meson build
- ninja -C build
- meson test -C build
jobs:
include:
- name: Coding style check
language: minimal
install:
- /alpine/enter-chroot apk add clang
script:
- /alpine/enter-chroot clang-format wob.c test.c --output-replacements-xml | (! grep '</replacement>' 1>/dev/null)
- name: Tests
language: minimal
install:
- /alpine/enter-chroot apk add wayland-protocols wayland-dev meson gcc
script:
- /alpine/enter-chroot meson build
- /alpine/enter-chroot ninja -C build
- /alpine/enter-chroot meson test -C build

0 comments on commit b187f16

Please sign in to comment.