-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
45 lines (39 loc) · 1.21 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
language: cpp
sudo: required
dist: trusty
branches:
only:
- master
env:
global:
- TOOLS_URL=https://github.com/mmatyas/retropie-frontendchooser/releases/download/tools
- QT_VER=qt596
install:
- sudo apt-get install -y
libudev-dev
libxi-dev
- pushd /tmp
- export TARGETS='x11-static rpi1-static rpi2-static'
- for target in ${TARGETS}; do
wget ${TOOLS_URL}/${QT_VER}_${target}.txz;
done
- wget ${TOOLS_URL}/rpi-toolchain_483.txz
- wget ${TOOLS_URL}/rpi-sysroot_jessie_2017-07-05.txz
- for f in *.txz; do sudo tar xJf ${f} -C /opt/; done
- sudo ln -s ${QT_VER}_x11-static /opt/${QT_VER}_x11-static_hosttools;
- popd
script:
- for target in ${TARGETS}; do
mkdir build_${target} && cd build_${target} &&
/opt/${QT_VER}_${target}_hosttools/bin/qmake .. &&
make install INSTALL_ROOT=$PWD/../install_${target} &&
cd ..;
done
after_success:
- mkdir dist && cd dist
- for target in ${TARGETS}; do
zip -j retropie-frontendchooser_${target}.zip
../install_${target}/opt/retropie-frontendchooser/bin/retropie-frontendchooser;
done
- wget https://github.com/mmatyas/uploadtool/raw/master/upload.sh
- bash ./upload.sh $(find ./ -name "*.zip")