mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 09:02:44 -06:00
Merge pull request #4129 from ccawley2011/clang-format-docker
travis: Use Docker for clang-format target
This commit is contained in:
commit
b194f238cb
5 changed files with 17 additions and 8 deletions
12
.travis.yml
12
.travis.yml
|
@ -3,15 +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"
|
||||||
- llvm-toolchain-trusty-6.0
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
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
|
||||||
|
mkdir -p "$HOME/.ccache"
|
||||||
|
docker run --env-file .travis/common/travis-ci.env -v $(pwd):/citra -v "$HOME/.ccache":/root/.ccache citraemu/build-environments:linux-clang-format /bin/bash -ex /citra/.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 citraemu/build-environments:linux-clang-format
|
5
.travis/clang-format/docker.sh
Executable file
5
.travis/clang-format/docker.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
# Run clang-format
|
||||||
|
cd /citra
|
||||||
|
./.travis/clang-format/script.sh
|
|
@ -6,6 +6,8 @@ TRAVIS_BRANCH
|
||||||
TRAVIS_BUILD_ID
|
TRAVIS_BUILD_ID
|
||||||
TRAVIS_BUILD_NUMBER
|
TRAVIS_BUILD_NUMBER
|
||||||
TRAVIS_COMMIT
|
TRAVIS_COMMIT
|
||||||
|
TRAVIS_COMMIT_RANGE
|
||||||
|
TRAVIS_EVENT_TYPE
|
||||||
TRAVIS_JOB_ID
|
TRAVIS_JOB_ID
|
||||||
TRAVIS_JOB_NUMBER
|
TRAVIS_JOB_NUMBER
|
||||||
TRAVIS_REPO_SLUG
|
TRAVIS_REPO_SLUG
|
||||||
|
|
Loading…
Reference in a new issue