forked from vituperative/i2pchat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
100 lines (93 loc) · 3.43 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
language: cpp
matrix:
include:
- os: linux
dist: focal
arch: amd64
before_install:
- sudo apt-get update -qq
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.14.2-focal
- sudo apt update
- sudo apt-get install -y qt514-meta-full
- sudo apt-get install -y devscripts build-essential lintian dh-make autoconf
- sudo apt-get install -y qtdeclarative5-dev
- sudo apt-get install -y qt5-qmake qt5-default build-essential libqt5multimedia5 qtmultimedia5-dev libqt5svg5-dev
- source /opt/qt514/bin/qt514-env.sh
compiler:
- clang
- gcc
script:
- echo $TRAVIS_TAG
- qmake I2PChat.pro
- make
after_script:
addons:
artifacts: true
#ssh-key & deploy function is only available in travis-ci.com (not free) but not in travis-ci.org (free)
#deploy:
# provider: releases
# api_key:
# secure: <key>
# file:
# - I2PChat
# skip_cleanup: true
# on:
# repo: wipedlifepotato/i2pchat
# tags: true
# TODO: fix it
# works on mac os
# - os: osx
# osx_image: xcode11.5
# before_install:
# - brew install qt5
# - brew link qt5 --force
# compiler: clang
# script:
# - mkdir -p /Users/travis/build/wipedlifepotato/i2pchat/I2PChat.app
# - /usr/libexec/PlistBuddy -c "Set :CFBundleVersion Alpha_$VERSION_NUMBER" wipedlifepotato/i2pchat/I2PChat.app/Contents/Info.plist
# - /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString Alpha_$VERSION_NUMBER" wipedlifepotato/i2pchat/I2PChat.app/Contents/Info.plist
# - qmake "CONFIG+=istravis" -spec macx-xcode I2PChat.pro
# - xcodebuild -list -project I2PChat.xcodeproj
# - xcodebuild -scheme I2PChat build
# #ssh-key & deploy function is only available in travis-ci.com (not free) but not in travis-ci.org (free)
# #deploy:
# # provider: releases
# # api_key:
# # secure: <key>
# # file:
# # - file.app
# # skip_cleanup: true
# # on:
# # repo: wipedlifepotato/i2pchat
# # tags: true
# Does not works correctly TODO: maybe delete it 😁️
# - os: windows
# before_install:
# - dir C:/Program\ Files\ \(x86\)/Windows\ Kits/10/bin/10.0.17134.0/x64
# - cmd.exe /C 'cd && "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
# x86 && cd && cd "C:/Users/travis/build/wipedlifepotato/i2pchat" && dir'
# - curl -vLO http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe
# - curl -vLO http://www.steinberg.net/sdk_downloads/ASIOSDK2.3.2.zip
# - unzip ASIOSDK2.3.2.zip
# - mkdir windows/ASIOSDK2
# - cp -rvu ASIOSDK2.3.2/* windows/ASIOSDK2
# - "./qt-unified-windows-x86-online.exe --verbose --script qt-installer-windows.qs"
# - ls -la C:/Qt/5.12.3/msvc2017/bin/qtenv2.bat
# script:
# - cmd.exe /C 'cd && "C:\Qt\5.12.3\msvc2017\bin\qtenv2.bat" && cd && "C:\Program
# Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"
# x86 && cd "C:\Users\travis\build\wipedlifepotato\i2pchat" && cd && qmake I2PChat.pro
# && nmake'
# #ssh-key & deploy function is only available in travis-ci.com (not free) but not in travis-ci.org (free)
# #deploy:
# # provider: releases
# # api_key:
# # secure: <key>
# # file:
# # - file.exe
# # skip_cleanup: true
# # on:
# # repo: wipedlifepotato/i2pchat
# # tags: true
before_install:
- eval "${MATRIX_EVAL}"