-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.travis.yml
58 lines (58 loc) · 2.33 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
46
47
48
49
50
51
52
53
54
55
56
57
58
language: cpp
branches:
except:
- /^appveyor.*$/
matrix:
include:
- name: "Linux"
os: linux
dist: xenial
sudo: required
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.12.0-xenial'
packages:
- libgsl-dev
- libgl1-mesa-dev
- qt512base
- qt512tools
- qt512svg
install:
- source /opt/qt512/bin/qt512-env.sh
- # Install QWT
- cd $TRAVIS_BUILD_DIR/..
- svn checkout svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1 qwt
- cd qwt
- QWT_ROOT_DIR=`pwd`
- LD_LIBRARY_PATH=$(readlink -f lib):$LD_LIBRARY_PATH
- qmake
- make -j$(nproc)
script:
- cd $TRAVIS_BUILD_DIR
- mkdir build
- cd build
- cmake .. -DQWT_ROOT_DIR=$QWT_ROOT_DIR -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:STRING=dist
- cmake --build . --target install
- # Run all of the examples
- find $TRAVIS_BUILD_DIR/example -name "example-*" -exec ./dist/usr/bin/strata -b {} \;
after_success:
- # Create the AppImage
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- ARCH=x86_64 ./linuxdeployqt-continuous-x86_64.AppImage dist/strata.desktop -appimage -no-translations
- # Rename and upload the AppImage
- VERSION=$(sed -ne 's/.*VERSION "\([0-9.]\+\)".*/\1/p' ../CMakeLists.txt)
- GITHASH=$(git rev-parse --short HEAD)
- IMAGE=Strata-v$VERSION-$GITHASH-x86_64.AppImage
- mv Strata-*.AppImage $IMAGE
- curl -F "file=@$IMAGE" https://file.io
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: MTTLCPZqrh35PgB7AMwcGP3Ats31Uih9U88hdbxl4LWgo/vWetRm5TV0kO6zMPbih6aN4sOk6W+y20VR5Qbq45bjhd9PeROIoGWUcICwkE0wMaK/ROzInACR4JURuD0FXTgj3y7IRUrvDP2JcpcN/MBX8iFhsUkZTH5o1KolLM+wLZbCn0DWT3oPwfR6fu4aKnG/4HzEiyomdlrFLxiDhjB3eQrAEV1SLFgueB3/M2tJHF0MzZtJZfIxx1inli00ZW0FZ+nfpBr1+nCLQfjtI/evjZTgpiuuY4hpS3fH9Lwogc1RD+BnZetvOJjOfqg3Englx1odasOT0WFOgXpobC289+2dgKDfq0engTs0Fq7xXZNQyJh8WSiKbt8j4yhr8Yb57ORbLPYjaJnd0Mu8h5XOIPrzq712vFxkJZLfjv7ZU+EPiDde/dUBw/jWyeMYciJk3WVD06pq2C2VIlXEE0CcisJPyNoD9o02LjmMSJ4eGB0v3BdBjg43bLfdtBKiwzFDN8WMN6jb6sYWzXTqhVA63GwVjOLz+qJM5/92gpQB2Aaewk7Q7cHmSUhthtMP0tAeDABh0F+W1ICk8Qom1uo1RwE/el1LMY9/jAk3FIfoMZp6aHQAQFb6/7eGxXSALip3S1xg4e/FRe2gNx0juRObsirjqusF5S9IJczaJ4Q=
file: "$IMAGE"
on:
repo: arkottke/strata
tags: true