-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
83 lines (75 loc) · 3.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: cpp
cache:
ccache: true
directories:
- /var/cache/apt/archives
matrix:
include:
- os: linux
dist: xenial
sudo: required
compiler: clang
- os: osx
osx_image: xcode10.2
sudo: required
compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install qt5;
brew upgrade qt5;
echo "Adding brewed Qt5 to path";
export PATH=/usr/local/opt/qt5/bin:$PATH;
qmake -v;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -y install libgl1-mesa-dev
echo "Installing Qt 5.12.3";
sudo add-apt-repository --yes ppa:beineri/opt-qt-5.12.3-xenial;
sudo apt-get update -qq;
sudo apt-get -y install qt512base qt5123d qt512tools qt512x11extras;
source /opt/qt512/bin/qt512-env.sh;
which qmake;
qmake -v;
echo "Installing Fuse";
sudo apt-get install -qq pkg-config fuse;
sudo modprobe fuse;
sudo chmod 666 /dev/fuse;
sudo chown root:$USER /etc/fuse.conf;
cd /home/travis/build;
mkdir linuxdeployqt && cd linuxdeployqt;
wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage -O linuxdeployqt;
chmod a+x linuxdeployqt;
export PATH=$PATH:/home/travis/build/linuxdeployqt;
cd /home/travis/build;
( wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 && tar xf patchelf-0.9.tar.bz2);
( cd patchelf-0.9/ && ./configure --prefix=$HOME/patchelf && make && make install && cd ..);
export PATH=$PATH:$HOME/patchelf/bin;
cd /home/travis/build;
mkdir appimagetool && cd appimagetool;
wget https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O appimagetool;
chmod a+x appimagetool;
export PATH=$PATH:/home/travis/build/appimagetool;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Preparing to deploy Muview2";
bash deploy/deployMacOSX.sh;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd /home/travis/build/grahamrow/Muview2;
bash deploy/deployLinux_travis.sh;
fi
- echo "Files in deploy/articfacts"
- ls deploy/artifacts
deploy:
provider: releases
draft: true
api_key:
secure: d2MC+YJVRE4Fk2vgIEB+6i6b7w304DMoHMA/ILIATfQPJXYBUslAT5jgEYrPX/2kFG2swKx20gmQobhwvuV1qbKkGCjWxwh/DDZGtDaHE23Lc9buOV6T8j81+/dbKXBDMd++8WuK7inxjbiIU33K3XlZQ8rWhoVGwmUi7iRNySwM+3ehUyELvDFUl0ry6J1VgTYMEipPWQyXDun5kn2pChm0HLrwR3bqywigAsVzpZRedVhKSDbuaXvi1DXB5ASXLEA8qgSjmso+ZywqSNlJx3sd8QPMBm+pi77ViFk0dqMEcm+AhU6fUyFNnxXgcIwt6+3j2D8mys6GY2l72KnkqIVqfJMpuQxAwtvkOZrSL/NwMSZAauzz3E93AcOmSRaafrLlMdkhvOCGJ6hq7YmeE4YZF7AfYZ9WRUiYWCt8O2HX1ls0LLBYvrWnZqKNdcksWLSY83Sf21R6J7STJje/s7IC5d76GTq4E+3HrvVIphk5akPL6N5Ke4cuaTK333DxdCU/taQW7jM13hhnFy1byY3Vu48UVSbFuU+zsl9TBiHoYcjY5kwOGs41Bu5hKjXlPYw36EKpXqMdl4J3vWHHx9aRY5z5rMOsEe87gPAkCjpt3vGx2VkBJ0aiIZ1Bs6mYHwSSAlkaWINQ6cC/Fn6Uc6GL47VvA0jFwrX9+okoe/Y=
file_glob: true
file: deploy/artifacts/*
skip_cleanup: true
on:
repo: grahamrow/Muview2
tags: true