forked from OpenHantek/openhantek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 923 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
42
43
44
language: cpp
dist: xenial
addons:
apt:
packages:
- qtbase5-dev
- qttools5-dev-tools
- libqt5opengl5-dev
- libusb-1.0-0-dev
- libfftw3-dev
matrix:
include:
- compiler: gcc
env: CMAKE_CXX_COMPILER=g++-5
os: linux
- compiler: clang
env: CMAKE_CXX_COMPILER=/usr/bin/clang++
os: osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install qt5 fftw binutils; export CMAKE_PREFIX_PATH=$(brew --prefix qt5); fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then pip install cmake --user; fi
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$CMAKE_CXX_COMPILER -DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH ../
script:
- make -j4
before_deploy:
- sudo make package
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: packages/*
skip_cleanup: true
on:
tags: true