-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (95 loc) · 3.85 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
language: cpp
stages:
- build & test
env:
- MAC_QT_DIR=/usr/local/opt/qt
addons:
apt:
update: true
packages:
- qt5-default
- qtbase5-dev
homebrew:
update: true
packages:
- qt5
jobs:
include:
- stage: build & test
os: linux
dist: bionic
language: cpp
compiler: gcc
install: &install_linux
- wget https://github.com/Kitware/CMake/releases/download/v3.15.7/cmake-3.15.7-Linux-x86_64.tar.gz
- tar -xf cmake-3.15.7-Linux-x86_64.tar.gz
- export PATH=`pwd`/cmake-3.15.7-Linux-x86_64/bin:$PATH
before_script: &before_script
- mkdir build
- cd build
script: &script_test_linux
- cmake ..
- make
- ./bin/hashgen_tests
- cpack
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- mv ./HashGenerator-*.tar.gz ./hashgen_linux_x64.sh
deploy:
provider: releases
token:
secure: "QKliWJ5w6fYmZdpirfYVHl4Cu2kqr0Hozkw3r7WR1BAzgwx5utB5HpdnF2AIDZ0V1a+KohFbJLTTDphEWEDTd9GOXRzVEiB8f6k++7p6qh5LUYP1Gj2ijg2nOCT8OkNHZkxrraedfEWnJFAJVzDakl2c5n2L0ruWBA4+VRmG5mrWn2IwrwqEKhzYeZ2gep5GoRd3QQVP15rHQjZ0A39NsItqF6Zg5Oufxr/Q9YWoWp5YAlcP/UnEeuhtDgXrfVuB0LMdRpDvM1xldvlavgHqSY0qUfHVqkH/EbH7H5KZ3a2sx+fLSBU3zfvfydQ211lRjZsi9zusxnwMZ1A30YBCDl81GQ+4xMLIV/Zm3p+Fcs94d6H5rJW2ZhBq/o9F7p4W/dp4TciMq8PJBv9k6uN/mBIDpdJd5hkPD7UU5zi7w5qULW1+q8pWMEBPSOY8IactFqMGuk42ET2umFgGx2dAe4C62pFX/69qPGlyfM5xM1k6LM9ejCSrlQbk12KcVFfNV02+z5DkEaHyZdqFCmFNuasQ3AGxcjzSPKfhlMd2AAOypJEbaeOZyPIKEWc6LEPUQCHVKPaXLvjVlVuldH3ysT4pbuR/gEKyYAlct34g7JvHNbpv4waNYdsGe2akmvd53fTNU80UluCfUesQg3eMUKm38KJFQi7RygPtDv4h85U="
file: ./hashgen_linux_x64.sh
cleanup: false
skip_cleanup: true
on:
tags: true
- stage: build & test
os: linux
dist: bionic
language: cpp
compiler: clang
install: *install_linux
before_script: *before_script
script: *script_test_linux
- stage: build & test
os: osx
osx_image: xcode11.4
language: cpp
compiler: gcc
install: &install_macos
- wget https://github.com/Kitware/CMake/releases/download/v3.15.7/cmake-3.15.7-Darwin-x86_64.tar.gz
- tar -xf cmake-3.15.7-Darwin-x86_64.tar.gz
- export PATH=`pwd`/cmake-3.15.7-Darwin-x86_64/bin:$PATH
before_script: &before_script_macos
- mkdir build
- cd build
- export PATH=$MAC_QT_DIR/bin:$PATH
script: &script_test_macos
- cmake .. -DCMAKE_PREFIX_PATH=$MAC_QT_DIR
- make
- ./bin/hashgen_tests
- cpack -G DragNDrop
- stage: build & test
os: osx
osx_image: xcode11.4
language: cpp
compiler: clang
install: *install_macos
before_script: *before_script_macos
script: *script_test_macos
before_deploy:
- mv ./bin/hashgen.app ./hashgen_macos_x64.app
- mv ./HashGenerator-*.dmg ./hashgen_macos_x64.dmg
deploy:
provider: releases
token:
secure: "QKliWJ5w6fYmZdpirfYVHl4Cu2kqr0Hozkw3r7WR1BAzgwx5utB5HpdnF2AIDZ0V1a+KohFbJLTTDphEWEDTd9GOXRzVEiB8f6k++7p6qh5LUYP1Gj2ijg2nOCT8OkNHZkxrraedfEWnJFAJVzDakl2c5n2L0ruWBA4+VRmG5mrWn2IwrwqEKhzYeZ2gep5GoRd3QQVP15rHQjZ0A39NsItqF6Zg5Oufxr/Q9YWoWp5YAlcP/UnEeuhtDgXrfVuB0LMdRpDvM1xldvlavgHqSY0qUfHVqkH/EbH7H5KZ3a2sx+fLSBU3zfvfydQ211lRjZsi9zusxnwMZ1A30YBCDl81GQ+4xMLIV/Zm3p+Fcs94d6H5rJW2ZhBq/o9F7p4W/dp4TciMq8PJBv9k6uN/mBIDpdJd5hkPD7UU5zi7w5qULW1+q8pWMEBPSOY8IactFqMGuk42ET2umFgGx2dAe4C62pFX/69qPGlyfM5xM1k6LM9ejCSrlQbk12KcVFfNV02+z5DkEaHyZdqFCmFNuasQ3AGxcjzSPKfhlMd2AAOypJEbaeOZyPIKEWc6LEPUQCHVKPaXLvjVlVuldH3ysT4pbuR/gEKyYAlct34g7JvHNbpv4waNYdsGe2akmvd53fTNU80UluCfUesQg3eMUKm38KJFQi7RygPtDv4h85U="
file:
- ./hashgen_macos_x64.app
- ./hashgen_macos_x64.dmg
cleanup: false
skip_cleanup: true
on:
tags: true