-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (38 loc) · 1.29 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
dist: xenial
language: minimal
install:
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.12.3-xenial
- sudo apt update
- sudo apt install libgl-dev
- sudo apt install python3 python3-pip
- pip3 install --user jinja2
# todo install only what is needed
- sudo apt install qt512base qt512serialport qt512-meta-minimal
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE:STRING=Release ..
# call make twice to fix qt auto-generated #include line
- make -j$(nproc) || make fix-ui
- make -j$(nproc)
- export PATH=/opt/qt512/bin:$PATH
- cp ../open-esc-qt.desktop .
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- ./linuxdeployqt-continuous-x86_64.AppImage open-esc-qt -appimage -unsupported-allow-new-glibc -verbose=0
- mv open-esc-qt*.AppImage open-esc-qt.AppImage
- cd ..
before_deploy:
- git tag continuous-deployment -f
- git remote set-url origin https://${GITHUB_TOKEN}@github.com/jaxxzer/open-esc-qt
- git push origin continuous-deployment -f
deploy:
provider: releases
api_key: ${GITHUB_TOKEN}
file_glob: true
file:
- build/open-esc-qt.AppImage
overwrite: true
skip_cleanup: true
on:
branch: master