forked from harfangeek/MeshEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
100 lines (99 loc) · 3.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: cpp
dist: xenial
branches:
only:
- master
- develop
- coverity
- feature/travis
matrix:
fast_finish: true
allow_failures:
- stage: Code analysis and deployment
include:
- stage: Build and test
name: Linux - GCC
os: linux
compiler: gcc
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -y -qq g++-8
- sudo apt-get install -y -qq --no-install-recommends make libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
script:
- make -j 2 CC=$CC CXX=$CXX
- name: Linux - Clang
os: linux
compiler: clang
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install -y -qq --no-install-recommends make libx11-dev libxcursor-dev
libxrandr-dev libxinerama-dev
script:
- make -j 2 CC=$CC CXX=$CXX
- name: Windows - GCC
os: windows
compiler: gcc
script:
- mingw32-make -j 2 CC=$CC CXX=$CXX
- name: Windows - MSVC
os: windows
filter_secrets: false
env: MSBUILD_PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
script:
- export PATH=$MSBUILD_PATH:$PATH
- MSBuild.exe MeshEditor.sln -m:2 -t:"Projects\MeshEditor" -p:configuration=release -p:platform=x64
- stage: Code analysis and deployment
name: SonarQube code analysis
if: branch != coverity
os: linux
compiler: gcc
cache:
directories:
- /home/travis/.sonar/cache
addons:
sonarcloud:
organization: "harfangeek-github"
token: $SONARCLOUD_TOKEN
git:
depth: false
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -y -qq g++-8
- sudo apt-get install -y -qq --no-install-recommends make libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
script:
- build-wrapper-linux-x86-64 --out-dir bw-output make -j 2
- sonar-scanner
- stage: Code analysis and deployment
name: Coverity code analysis
if: branch = coverity
os: linux
compiler: gcc
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -y -qq g++-6
- sudo apt-get install -y -qq --no-install-recommends make libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
script:
- echo "--- done ---"
addons:
coverity_scan:
project:
name: "harfangeek/MeshEditor"
description: "A simple mesh editor"
notification_email: harfangeek@gmail.com
build_command_prepend: "make libs"
build_command: "make mesh"
branch_pattern: coverity