forked from opentibiabr/otservbr-global-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (51 loc) · 2.25 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
---
arch: amd64
os: linux
dist: focal
language: cpp
compiler: gcc
env:
- VCPKG_TRIPLET=x64-linux
git:
strategy: clone
depth: false
addons:
sonarcloud:
organization: "opentibiabr"
token:
secure: X+7KiitGRaVuYh8wjZQDJ3kmv2B+FNudXaRUbOwjK/a+0YK0z7FkVmXklg05MygF4QtjkTOdUqg/HSgSY492/jMkb2ZxOlI/utR+UUnKf77XiwBFcUG+bmdNAG8+U0MG5I70xKjauXdNrUFZu9Ds5TpD40m4UMmAr0pGtrXyP6T28WG7t/sNxzlmwSx0Z+2+ZKhEFdneAXVXX6zC6TXA5yPFvEdawPm8iqJ7fjq559Yqsn7l38Sd3BVoa9tbcwTMCvQwn6DivxLbkSKYs173y33bbGx48rikf9JHdFaSPVD7rNzpiuz7JCxJu6eBjh+FP9lxs4jJ0Kb8NEzxzotjGNSyxAW7+o0F8F869PL3fpTcWMlWTnrEVAn5pIXGaZ6+0yhoCSCwbHGKX42rUXndlROF1laCnE8ANOBFqxElVQpRNJVI2Xh34q32VdElGX9I73BmaTq8QZN9o4a895g3a2XeP4tCUxNbflh60uMHa6eOS5mOuuOc4l6ehYvwJw3aa3Pcz46RvcAWfp+5aslTDXnCZzDoBlTSx8tKkR7kNe+AnZj2yQi0j/mWOR97S9N2qfKDaEGnMtyq+EUEkOE6KPI8eqzrNYHbNX6SVbyfMer8nAem6b1p8PgaU+vgeixgtWaB+OgZSf592xrtkrKEeuA37dm+hwQJ2IzcZ7+p7RA=
apt:
update: true
packages:
- ccache
- build-essential
- cmake
- libluajit-5.1-dev
- tar
- curl
- zip
- unzip
install:
- cd /home/travis/build/opentibiabr
- git clone https://github.com/microsoft/vcpkg
- ./vcpkg/bootstrap-vcpkg.sh
- ./vcpkg/vcpkg integrate install
script:
- cd /home/travis/build/opentibiabr/otservbr-global
- export CXXFLAGS="$CXXFLAGS -DBOOST_ASIO_DISABLE_NOEXCEPT=1 "
- /home/travis/build/opentibiabr/vcpkg/vcpkg --feature-flags=binarycaching,manifests,versions install
- mkdir build
- cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=/home/travis/build/opentibiabr/vcpkg/scripts/buildsystems/vcpkg.cmake ..
- cd ..
- NUMBER_OF_PROCESSORS=$(nproc --all)
- build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build/
- sonar-scanner -Dsonar.cfamily.cache.enabled=true -Dsonar.cfamily.cache.path=${TRAVIS_HOME}/.cfamily -Dsonar.cfamily.threads=${NUMBER_OF_PROCESSORS} || true
# - sonar-scanner -Dsonar.cfamily.cache.enabled=true -Dsonar.cfamily.cache.path=${TRAVIS_HOME}/.cfamily -Dsonar.cfamily.threads=${NUMBER_OF_PROCESSORS} || true
# - curl --upload-file /home/travis/build/opentibiabr/otservbr-global/sonar-cfamily-reproducer.zip https://transfer.sh/sonar-cfamily-reproducer.zip
cache:
directories:
- $HOME/.sonar/cache
- $HOME/.cache
- $HOME/.ccache
- $HOME/.cfamily