mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 19:12:24 -05:00
Travis CI: Use a multi-stage build to run static checks first
This prevents Travis CI from performing full builds if static checks have failed. This also removes `sudo: false` as it is deprecated.
This commit is contained in:
parent
fb5e8b509b
commit
1b7be55bac
1 changed files with 12 additions and 1 deletions
13
.travis.yml
13
.travis.yml
|
@ -2,7 +2,10 @@ language: cpp
|
||||||
|
|
||||||
# OS config, depends on actual 'os' in build matrix
|
# OS config, depends on actual 'os' in build matrix
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: false
|
|
||||||
|
stages:
|
||||||
|
- check
|
||||||
|
- build
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -18,6 +21,7 @@ cache:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: Static checks (clang-format)
|
- name: Static checks (clang-format)
|
||||||
|
stage: check
|
||||||
env: STATIC_CHECKS=yes
|
env: STATIC_CHECKS=yes
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
@ -29,6 +33,7 @@ matrix:
|
||||||
- clang-format-8
|
- clang-format-8
|
||||||
|
|
||||||
- name: Linux editor (debug, GCC 9, with Mono)
|
- name: Linux editor (debug, GCC 9, with Mono)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="module_mono_enabled=yes mono_glue=no warnings=extra werror=yes"
|
env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="module_mono_enabled=yes mono_glue=no warnings=extra werror=yes"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc-9
|
compiler: gcc-9
|
||||||
|
@ -52,6 +57,7 @@ matrix:
|
||||||
branch_pattern: coverity_scan
|
branch_pattern: coverity_scan
|
||||||
|
|
||||||
- name: Linux export template (release, Clang)
|
- name: Linux export template (release, Clang)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
|
env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
@ -61,21 +67,25 @@ matrix:
|
||||||
- *linux_deps
|
- *linux_deps
|
||||||
|
|
||||||
- name: Android export template (release_debug, Clang)
|
- name: Android export template (release_debug, Clang)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
|
env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
||||||
- name: macOS editor (debug, Clang)
|
- name: macOS editor (debug, Clang)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang
|
env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang
|
||||||
os: osx
|
os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
||||||
- name: iOS export template (debug, Clang)
|
- name: iOS export template (debug, Clang)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang
|
env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang
|
||||||
os: osx
|
os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|
||||||
- name: Linux headless editor (release_debug, GCC 9)
|
- name: Linux headless editor (release_debug, GCC 9)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes"
|
env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-9 MATRIX_EVAL="CC=gcc-9 && CXX=g++-9" EXTRA_ARGS="warnings=extra werror=yes"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc-9
|
compiler: gcc-9
|
||||||
|
@ -88,6 +98,7 @@ matrix:
|
||||||
- *linux_deps
|
- *linux_deps
|
||||||
|
|
||||||
- name: Linux export template (release_debug, GCC 5, without 3D support)
|
- name: Linux export template (release_debug, GCC 5, without 3D support)
|
||||||
|
stage: build
|
||||||
env: PLATFORM=x11 TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-5 EXTRA_ARGS="disable_3d=yes"
|
env: PLATFORM=x11 TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-5 EXTRA_ARGS="disable_3d=yes"
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
|
Loading…
Add table
Reference in a new issue