forked from cnr-isti-vclab/meshlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis_old.yml
122 lines (116 loc) · 4.35 KB
/
.travis_old.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Enable C++ support
language: cpp
os:
- osx
- linux
dist: trusty
sudo: required
compiler:
- clang
git:
depth: 1
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
# suggested by https://stackoverflow.com/questions/29721240/ci-for-qt-app-build-with-different-qt-versions
#sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty
sudo add-apt-repository --yes ppa:beineri/opt-qt594-trusty
sudo apt-get update -qq
fi
install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
npm install -g appdmg
echo "appdmg version: "
npm list --depth=0
export COLUMNS=80
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
chmod +x ./macports-ci
./macports-ci install
PATH="/opt/local/bin:$PATH"
sudo port -N install clang-6.0
sudo port -N install libomp
sudo port -N install qt59
sudo port -N install qt59-qtscript
sudo port -N install qt59-qttools
#Set up Qt environment
#Use Qt from MacPorts, change QTDIR if using own version of Qt
export QTDIR=/opt/local/libexec/qt5
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QTDIR/lib:$PKG_CONFIG_PATH
echo "----------"
echo $PATH
echo "----------"
clang --version
echo "----------"
qmake --version
fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
then
sudo apt-get -y install qt59[QTPACKAGE]
#sudo apt-get -y install qt5-default
#sudo apt-get -y install qtscript5-dev
#sudo apt-get -y install libqt5xmlpatterns5-dev
qmake --version
echo $QMAKESPEC
export QMAKESPEC="linux-clang"
fi
- cd ..
- git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git
- cd meshlab
cache:
# directories:
# - $HOME/.macports-ci-ccache
script:
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="/usr/local/opt/llvm/bin:$PATH" ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which clang ;fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ln -s /usr/local/opt/llvm/bin/clang /usr/local/opt/llvm/bin/clang++-mp-3.9 ;fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH="$QTDIR/bin:$PATH" ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then LDFLAGS=-L$QTDIR/lib ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then CPPFLAGS=-I$QTDIR/include ;fi
#- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source /opt/qt55/bin/qt55-env.sh ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source /opt/qt59/bin/qt59-env.sh ;fi
- cd src
- cd external
- qmake --version
- qmake
- make -j4
- cd ..
#- qmake meshlab_mini.pro
- qmake meshlab_full.pro
- make -j4
after_success:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
pwd
ls distrib
cd install/macx
./macinstall_v2018.sh
pwd
echo "------ Completed!!! We should have a dmg here "
cd ../../..
ls -la src/distrib/MeshLab201804.dmg
fi
before_deploy:
- ls -la src/distrib/MeshLab201804.dmg
- git config --local user.name "cignoni"
- git config --local user.email "[email protected]"
#- git tag "MeshLab-$(date +'%Y%m%d')-$(echo 'beta')"
- git tag "$(git log --format=%h -1)"
#- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
overwrite: true
provider: releases
api_key:
secure: DwQcZjW9DJQvfSh0hIc1xHu3mrX6TJ5IqEBz8H6W4Y+/hln4+qGHBBqYBB2KfdhA1Tlb0cy6vthZIVXWL0LWdFVX9Al8hZeQ1EXIJO3WlqTqZUQgy01lgT5FxXBDeaACH9+InyGM2nXw3i0WJW+bUdWJ2dQQaDyEc+JMmvg5Pi5vzK4DusbpBxZkL0T2egfJuxlNi+C5a8kPu31L6uew5pf5EhBEcjLjayB+QulfX9XN/cmGqFIy8+nlRXjay7dankCsOaznEbZh9PRzeLX+YO2A5qVHtcJpBxMkm50BhpuWQtSFa8JA08spVhVABCB7sY35qL2BzVJH0KeoqNKZRBOAkLSvQefyg7nAR093YUiB+1LgyefBZWU17THMjp2XMwyYsA57eF58EPP3uZal/w2voQ1FgZh7uIN+2b/lXl2qBm0dy4E9XGNR+hSsTJOQd5VNPsP76P9Uc9iTidGHi2KN34tL+ySvPAZ1DWLfR4lrjloe3PhHUMrYOg9pvv9lCfbL/23sAWyBsIII+YXohuXp/PR5hbYxRFyVQM4lizgXNICHc++RldqjlsLbd3uSzSaAmTftclcoL7hB2X7SkLKOlYaQl6lz+B9elo4Y92Zi8tv7t31SlgbjpDX9FUX0GOS/XIjvZX1xqe0lLuJgLTt6bo8X5rDCoXkNVNhvtzw=
file: "./src/distrib/MeshLab201804.dmg"
skip_cleanup: true
name: "MeshLab-$(date +'%Y%m%d')-beta"
prerelease: true
on:
repo: cnr-isti-vclab/meshlab
condition: $TRAVIS_OS_NAME = osx