-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.06 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
sudo: required
dist: trusty
language: cpp
cache: apt
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:hedges/qt5.5'
packages:
- g++-7
- cmake
- qt55base
- libbotan1.10-dev
- libqrencode-dev
- libzbar-dev
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
branches:
only:
- 'master'
before_install:
- eval "${MATRIX_EVAL}"
# Use the latest libQtShadowsocks code
- git clone https://github.com/shadowsocks/libQtShadowsocks.git
- mkdir libQtShadowsocks/build
- cd libQtShadowsocks/build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DQt5Core_DIR="/opt/qt55/lib/cmake/Qt5Core" -DQt5Network_DIR="/opt/qt55/lib/cmake/Qt5Network" -DQt5Test_DIR="/opt/qt55/lib/cmake/Qt5Test"
- make
- sudo make install
- cd -
script:
- mkdir build && cd build
- cmake .. -DQt5Core_DIR="/opt/qt55/lib/cmake/Qt5Core" -DQt5Network_DIR="/opt/qt55/lib/cmake/Qt5Network" -DQt5Gui_DIR="/opt/qt55/lib/cmake/Qt5Gui" -DQt5Widgets_DIR="/opt/qt55/lib/cmake/Qt5Widgets" -DQt5DBus_DIR="/opt/qt55/lib/cmake/Qt5DBus"
- make