This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (37 loc) · 1.64 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
language: cpp
os:
- linux
- osx
compiler:
- g++
- clang
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository --yes ppa:beineri/opt-qt593-trusty;
fi;
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq update; fi;
- if [ $TRAVIS_OS_NAME = osx ]; then brew update; fi;
install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq install qt59quickcontrols2
ninja-build; fi;
- if [ $TRAVIS_OS_NAME = osx ]; then brew install cppcheck qt ninja; fi;
before_script:
- if [ $TRAVIS_OS_NAME = linux ]; then source /opt/qt59/bin/qt59-env.sh; fi;
- if [ $TRAVIS_OS_NAME = osx ]; then export PATH="$(brew --prefix qt)/bin:$PATH";
fi
- mkdir build
- cd build
script:
- cmake .. -DCMAKE_BUILD_TYPE=Release -G "Ninja"
- ninja
- ctest --output-on-failure
- cpack
deploy:
- provider: releases
skip_cleanup: true
api_key:
secure: PpGyQ04Yi/c106VzEpX6jVoeRtQfCYq98S5cawPdamvVdwhFHO1HghDKl9BQxMpJLNt4gsEbi5K+6ooRdZgFbYVy00P88k4CwzlriUYvE6j3aJBoGCRSz5NUKOZKYFvjn8+a1ACL9ZjOdCS4Koqc9cSG/4+NI/paENS5eDZgWumlBFL+GyoZK5QNm0uXUVlfy2s8mNMbiQ6UPYwYDVcCJIO9/ItwrL7VLlhOesOnDoGSnBJqpl7TCEAmx4Y/r/YReBE25wIKgmJMb2QHBKcoVyYJ4oVJfuGcq+42YN7KeEKI+zScQfCQR+AvNfr6r+7xQCVaKZk4Otej0QfarqdLSK4Q5gLNCSS8uSLM8eKx7v8qiiTkDwCgOB+OPcmI5MOkUYE1iNOVyEZjREgnP/5hTCKx2PSEad1SBrITNL2uM3CwQrzkHluud05m//zz0ftaGduQmZXdiK4Ux2LdtEtflfS/KXH2bYU2Ok/Uc0UJSbLBsNPaJIc7Q5kSEOoE5jWGhDk8Gq2T28L4uupoXzsV1CX/Kd+/bf0wh7KlQBDk1H0JkLtaEpokty31r8+56TgnEJxdgAjoqVNBKwHxFRREjpdyfX7CFiRFaThyYT454/HHxZf1C/ZmCxG2AmWTWoxOytieVW3MAmWCZOOQ5AMmjZ9NNNYhjNA0wrLZaTstU0c=
file_glob: true
file: "indiomnia-*"
on:
condition: ($TRAVIS_OS_NAME = linux) && ($CXX = g++)
tags: true