-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
41 lines (41 loc) · 1.08 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
language: android
android:
components:
- tools
- platform-tools
- build-tools-29.0.2
- android-29
licenses:
- 'android-sdk-license-.+'
addons:
apt:
packages:
- binutils-mingw-w64-i686
- g++-mingw-w64-i686
- gcc-mingw-w64-i686
- wine
- groff
- gtk2.0
- libgtk2.0
- libgtk2.0-dev
before_install:
- yes | sdkmanager "platforms;android-29"
before_script:
- wget --no-check-certificate -O astyle_3.1_linux.tar.gz http://sourceforge.net/projects/astyle/files/astyle/astyle%203.1/astyle_3.1_linux.tar.gz/download
- tar -xf astyle_3.1_linux.tar.gz -C $HOME
- make -C $HOME/astyle/build/gcc
- make -C $HOME/astyle/build/gcc prefix=$HOME install
script:
- if [[ -n $(make astyle | grep Formatted) ]]; then echo "Code formatting error. Please check astyle"; exit 1; fi
- make android
- make ARCH=Win32
- make ARCH=Win32 dist
- make srczip
- make clean
- make
- ./pktriggercord-cli --version
- mkdir -p windows_test
- cd windows_test
- unzip ../pktriggercord-*-win.zip
- wine ./pktriggercord-cli.exe --version
- cd ..