-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (37 loc) · 970 Bytes
/
.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
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-9
- g++-9
before_install:
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz -O premake.tar.gz
- tar -xf premake.tar.gz
- chmod +x premake5
install:
script:
- export CC=/usr/bin/gcc-9
- export CXX=/usr/bin/g++-9
# Check versions of gcc and g++
- gcc -v && g++ -v --version
# Create the project files
- ./premake5 gmake2 --coverage
# Compile and run release
- make config=release
- ./bin/Release-linux-x86_64/Test/Test
# Compile and run release-size
- rm -r bin
- rm -r bin-int
- make config=release-size
- ./bin/Release-Size-linux-x86_64/Test/Test
# Run code coverage in debug mode
- rm -r bin
- rm -r bin-int
- make config=debug
- ./bin/Debug-linux-x86_64/Test/Test
- ./GetCodeGCOV.sh
- bash <(curl -s https://codecov.io/bash)
after_success: