forked from Dr-Incognito/V2Ray-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 loc) · 915 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
language: cpp
dist: bionic
osx_image: xcode11.3
os:
- linux
- osx
branches:
only:
- 'master'
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install -y build-essential libz-dev qt5-default libqt5svg5-dev qtbase5-dev qtdeclarative5-dev qtquickcontrols2-5-dev;
sudo apt-get install clang-format-9;
sudo rm /usr/local/clang-7.0.0/bin/clang-format;
sudo ln -s `which clang-format-9` /usr/bin/clang-format;
fi
# Remove the quickcontrols2 and retranslate() because it is not supported in Qt 5.9
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sed -i "/QQmlEngine::contextForObject/d" src/appproxy.cpp;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew install qt5 clang-format;
brew link qt5 --force;
fi
- git submodule update --init --recursive
script:
- clang-format --version
- bash scripts/clang-format.sh
- qmake src/V2Ray-Desktop.pro
- make -j4