forked from Qv2ray/Qv2ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (24 loc) · 938 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
language: cpp
matrix:
include:
- os: linux
dist: bionic
sudo: required
env: BADGE=linux
- os: osx
env: BADGE=osx
before_install:
- if [ "$BADGE" = "linux" ]; then sudo apt-get update; fi
install:
- if [ "$BADGE" = "linux" ]; then sudo apt-get install qtchooser libgl-dev qt5-default qttools5-dev-tools; fi
- if [ "$BADGE" = "osx" ]; then brew install qt5 --verbose; fi
before_script:
- if [ "$BADGE" = "osx" ]; then export PATH="/usr/local/Cellar/qt/5.13.1/bin:$PATH"; fi
- if [ "$BADGE" = "linux" ]; then sudo cp ./libs/lrelease.prf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/; fi
script:
- git submodule update --init
- mkdir build && cd ./build
- qmake ../
- if [ "$BADGE" = "linux" ]; then make compiler_lrelease_make_all; fi
- if [ "$BADGE" = "linux" ]; then ls -lah --color=always --recursive; fi
- make -j8