This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (52 loc) · 2.71 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
language: c
compiler: gcc
sudo: required
dist: trusty
env:
global:
- MY_PV=0.2.10
install:
- sudo apt-get -qq update
- sudo apt-get install -y check cmake libc6-dbg rpm
- wget https://launchpad.net/ubuntu/+source/valgrind/1:3.13.0-1ubuntu3/+build/13618072/+files/valgrind_3.13.0-1ubuntu3_amd64.deb
- sudo dpkg -i *.deb
jobs:
include:
- stage: Test build
- stage: SonarQube Scan
env:
- SONAR="build-wrapper-linux-x86-64 --out-dir bw-output"
cache:
directories:
- $HOME/.sonar/cache
addons:
sonarcloud:
organization: obsidian-studiosinc-github
token:
secure: K3LkbiZNaUuJTYMi4ysVFk9ZtUxiCNLa8eRQVSF2KxrtN+u8SQPY0S5b8Xu0l7O6LKLKTdAwSKCM5r2AH2YOAMP7WRz9hzsVCdkwWHdTQ6Q3BIg2HT8ewrFj8BYvO1/VmoYmrTYSXQyVEVw+vU4Nf15Nxj9ppbiKRxOrY+FhVkCuYxuJMiKT22e22At38Dna68q8ki2thrmT3UyaK2XO40rF2fxg2sLbmxuAYzzU4o2D35+QPs0OPSMDF2W8m1pkewTKeMCAN0dINVM5W9Wcf/9Ga9LGvz5FX13EpuJiMZ4M4KnFp0o5fjuEEGbU5dJK272pHn9Em7ZhplYahKsP2Yf0vtBlihXMz4xoGEOizY5mnkCvLmyYMYhY1YpyQnLaZ+OvtTkP/BemZMGdGzujnFa+rh4Y7Xm5zVawMwAbGKv8TlqlYUpvbGeNIzx7mY826DW1HpPWJ3/YjzgfDcMhPlg5LWUSWb8qFZEyvm3xztper7u33iGmkDtLVXlhJig2cLd/NJiJZd0PNcLxE8yvCvdm1NTlqjd1aMdEtZZE+DFFuUhdjJpUS8cq1+M/4c9l5I+MVPm6OTzOzXuc9evNKIJnt4YA72dkayfaekwvwQeKA3ruS6B42FdyYELH6urwH35mWXz1JkDisKW/dVDJaBJwPW5dxlqA6QA4NtXcsA4=
- stage: Deploy
if: tag =~ ^v.*
deploy:
provider: releases
api_key:
secure: o1QCPfk+VoC+a0lLE5c9BfucJeUXRFq5acaofFk/07RR5lBRVhDiSE6l9a2ZP92iFBqTeoQQCCf83eTWTK1r/1tbP9k/goFkXeZjqRE+DuPJ1d7qAcYize23IL+VLy1T+z/jwfUYBt/kxj9GxRQ8dTqxhIDiuA4N7WFRqeMnkpxcPcbrqDJXstWL6rZIk3KCiGCM4P5TT9b2x9T8FuRTqnXDZHkiDq0MrRxX5A98Y0tJwBHbauxnzrnfxtcDbaX9cqdSrOqcpe1ndEYIFiWPGzdgmFqBFeiTOcng0vcjKo616rk4CoCbfjU4CI2FMFuDFO70InknY6eQknzaPo9qpuhRve3UTZw2YD58TfUs/4b+9aVep5sehWeZpUvNzjqGko1r4XnhzU90hylZAK5xEY3CFvEhnC/B/j+e06aLvuafI5YkC56fT3uwUCPeJ+cAtt4835XcJkKEIafZpESAp3256kwzyM+aQv3oOGq6K1YHmi4OtjmQ1bA/UB4E27IAQf5VIybxIlW0WL/78UKsQ5DfpQUBomXDgLRPbXxDkrGE9kvMu+sA15dxjEDL4z46sjlc8ENol9sbA6bbFDohKeDB96Z1f/9mFyBl2ACQgG0DQjaP0AtUHa0r8L1cfiX0mX5sc3wGG8w3mMNjPV2drhW5SwyPrrPTOlJko7EunXM=
file:
- dist/asspr-${MY_PV}.x86_64.deb
- dist/asspr-${MY_PV}.x86_64.rpm
on:
repo: Obsidian-StudiosInc/asspr
branch: master
tags: true
skip_cleanup: true
script:
- cmake -D CMAKE_BUILD_TYPE=Release ./
- make package
script:
- cmake -D CMAKE_BUILD_TYPE=Debug ./
- ${SONAR} make asspr asspr-test
- make test
- ./tests/run-tests.sh -b
- if [ "${SONAR}" ]; then find . -name '*.gcno' -exec sh -c 'gcov -b {} -o $(dirname {})' \;; fi
- if [ "${SONAR}" ]; then sonar-scanner; else make; fi
notifications:
email: false