mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-14 06:45:17 +00:00
Use Docker for Build Target clang-format for travis.
This uses the (apparently) more stable Ubuntu Repo instead of the LLVM one.
This commit is contained in:
parent
98ffad4303
commit
947831ff1e
13
.travis.yml
13
.travis.yml
|
@ -3,16 +3,11 @@ matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
env: NAME="clang-format"
|
env: NAME="clang-format"
|
||||||
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
addons:
|
services: docker
|
||||||
apt:
|
install: "./.travis/clang-format/deps.sh"
|
||||||
sources:
|
script: "./.travis/clang-format/build.sh"
|
||||||
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main'
|
|
||||||
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
||||||
- sourceline: 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main'
|
|
||||||
packages:
|
|
||||||
- clang-format-6.0
|
|
||||||
script: "./.travis/clang-format/script.sh"
|
|
||||||
- os: linux
|
- os: linux
|
||||||
env: NAME="linux build"
|
env: NAME="linux build"
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
3
.travis/clang-format/build.sh
Executable file
3
.travis/clang-format/build.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
docker run -v $(pwd):/yuzu ubuntu:18.04 /bin/bash /yuzu/.travis/clang-format/docker.sh
|
3
.travis/clang-format/deps.sh
Executable file
3
.travis/clang-format/deps.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
docker pull ubuntu:18.04
|
8
.travis/clang-format/docker.sh
Executable file
8
.travis/clang-format/docker.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y clang-format-6.0
|
||||||
|
|
||||||
|
# Run clang-format
|
||||||
|
cd /yuzu
|
||||||
|
./.travis/clang-format/script.sh
|
Loading…
Reference in a new issue