-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
57 lines (47 loc) · 3.05 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
language: cpp
compiler:
- g++
env:
global:
- secure: "UE4WwdpYWcHbXy5zGvSItWYOjbzLMac5ponHULHlZmojyqyY0lr36dQ2AINdM0dcq6XpNz45AwoVcTC/pGlm/s7zGvxKbyUWd4QzfRHJMtLcRU7GztTBI3PXAXPdd6a0fL62te0ZD6mCm/LO1gnqDBLZV/gkt55u94VCxfogexeZHjmD/fBds+YlmJ6q9lMGhYKLOPS70C6tGxUq5INZ4/ncjjtUSRMNB6VzsEIIhktgncJyg4SRvXs5hwEVcl/spWnyNtt4HaJp3ah3wmHDA6PI8iEJsQ9eMUlYWx+fYLl2pNZV/s8ebOpvRsXHADC36Z3RYdVbMABHL0VKxszXEgiQtOv+xguTtS6MZqfoeNIQ/KeWCKU5Y+FoNRzZuTS2Go3Ju92xCwx177WJDldtlcRanrmjRp00lRDZF5bHBsUJixMWP1mzqrV+Zg+DYykQ/Er82CiMKTqZTZI5RbpNkxU/Del5oiz3QlymEz3RWUTipoegybMWUsqGS8UCyO50rpz0gw2TA5wl6QAG286zOYgx0zlVpDPKZTyfuveU6dYUtvrO9jqIar7wMs2of1YZ37HUomwEF8WWAp6CQsWTPG4ZJTbiuFvzC9X7ZoABsqScLOrGecqsp4x2SyEfRzn/l/z3D52ILnisQIhRUVXDE51CYJIMorNcNvqAgbtia6w="
matrix:
include:
- os: linux
dist: trusty
sudo: required
notifications:
email:
on_success: never
on_failure: never
git:
submodules: false
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-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- git clone --recurse-submodules https://github.com/Bang3DEngine/BangEditor
- cd BangEditor
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
install:
- sudo apt-get update
- sudo apt-get -y install cmake make autoconf automake libtool git autogen build-essential libegl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev zlib1g-dev libsndfile1-dev libsndio-dev
- sudo apt-get -y install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
addons:
coverity_scan:
project:
name: "Bang3DEngine/BangEditor"
description: "Description"
notification_email: ""
build_command_prepend: ""
build_command: "mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=ON -DFROM_TRAVIS=ON -DCMAKE_BUILD_TYPE=Release .. && make VERBOSE=1 -j6"
branch_pattern: coverity_scan
script:
- rm -rf build && mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=OFF -DFROM_TRAVIS=ON -DCMAKE_BUILD_TYPE=Debug .. && make VERBOSE=0 --no-print-directory -j6 && cd ..
- rm -rf build && mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=OFF -DFROM_TRAVIS=ON -DCMAKE_BUILD_TYPE=Release .. && make VERBOSE=0 --no-print-directory -j6 > buildStaticRel.txt && cd ..
- sudo apt-get -y install libglew-dev libfreetype6-dev libopenal-dev libsdl2-dev libsdl2-ttf-dev libassimp-dev libsndio-dev
- rm -rf build && mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=ON -DFROM_TRAVIS=ON -DCMAKE_BUILD_TYPE=Debug .. && make VERBOSE=0 --no-print-directory -j6 > buildSharedDeb.txt && cd ..
- rm -rf build && mkdir -p build && cd build && cmake -DBUILD_SHARED_LIBS=ON -DFROM_TRAVIS=ON -DCMAKE_BUILD_TYPE=Release .. && make VERBOSE=0 --no-print-directory -j6 > buildSharedRel.txt && cd ..
- cd Compile/CompilePackage && mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DFORCE_NO_PIE=OFF .. && make VERBOSE=0 --no-print-directory -j6 && cd ../..
- cd ..