forked from live-keys/livekeys
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
124 lines (117 loc) · 4.59 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
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
123
124
language: cpp
os:
- osx
- linux
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- build-essential
- cmake
- cmake-data
- git
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- python-dev
- python-numpy
- python3
- python3-pip
- libtbb2
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libjasper-dev
- libdc1394-22-dev
- libgl1-mesa-dev
- unzip
install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
brew update;
brew install python3;
sudo mkdir /opt/qt;
sudo chmod 777 /opt/qt;
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun;
rm -r '/usr/local/lib/python2.7/site-packages/numpy';
rm '/usr/local/bin/f2py';
brew install numpy;
brew search opencv;
brew info opencv@4;
brew install opencv@4;
echo "Open CV environment";
ls /usr/local/Cellar;
echo "/usr/local/opt";
ls /usr/local/opt;
OPENCV_VERSION="$(ls -1 /usr/local/Cellar/opencv)";
echo $OPENCV_VERSION;
export OPENCV_DIR=/usr/local/Cellar/opencv/$OPENCV_VERSION;
export PKG_CONFIG_PATH=$OPENCV_DIR/lib/pkgconfig;
echo $OPENCV_DIR;
echo $PKG_CONFIG_PATH;
echo $PWD;
cd build;
wget https://github.com/livecv/live-pm/archive/master.zip;
unzip master.zip;
mv live-pm-master/* .;
wget http://download.qt.io/archive/qt/5.11/5.11.1/qt-opensource-mac-x64-5.11.1.dmg;
ls;
hdiutil attach -mountpoint installqt qt-opensource-mac-x64-5.11.1.dmg;
./installqt/qt-opensource-mac-x64-5.11.1.app/Contents/MacOS/qt-opensource-mac-x64-5.11.1 --script resources/install-qt-macos.qs --verbose --silent -platform minimal;
ls /opt/qt/5.11.1/clang_64;
export QTDIR=/opt/qt/5.11.1/clang_64;
fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo apt-get install -y libtiff5 libtiff5-dev;
git clone --single-branch -b 4.1.1 https://github.com/opencv/opencv.git;
cd opencv;
mkdir build;
cd build;
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_GENERATE_PKGCONFIG=YES -D BUILD_EXAMPLES=OFF -D BUILD_opencv_apps=OFF -D BUILD_DOCS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF ..;
make -j8;
sudo make -j8 install;
export OPENCV_DIR=/usr/local/lib;
cd ../../build;
wget https://github.com/livecv/live-pm/archive/master.zip;
unzip master.zip;
mv live-pm-master/* .;
wget http://download.qt.io/archive/qt/5.11/5.11.1/qt-opensource-linux-x64-5.11.1.run;
sudo chmod 777 qt-opensource-linux-x64-5.11.1.run;
./qt-opensource-linux-x64-5.11.1.run --script resources/install-qt.qs --verbose --silent -platform minimal;
export QTDIR=/opt/qt/5.11.1/gcc_64;
fi
script:
- ls
- pip3 install -r requirements.txt --user
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then python3 livepm/main.py build .. macos_clang_64; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then python3 livepm/main.py build .. gcc_64; fi
- find .
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then python3 livepm/main.py deploy .. macos_clang_64; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then python3 livepm/main.py deploy .. gcc_64; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then python3 livepm/main.py deploy .. gcc_64_standalone; fi
- if [ "${TRAVIS_OS_NAME}" == "0" ]; then
python3 livepm/main.py makedoc ..;
export LIVEKEYS_DOC=$(ls doc*.tar.gz | tail -n +1 | head -1);
mv ${LIVEKEYS_DOC} livekeys-doc.tar.gz;
fi
- ls
before_deploy:
- ls *.tar.gz
- export LIVEKEYS=$(ls live*.tar.gz | tail -n +1 | head -1)
- echo ${LIVEKEYS}
deploy:
provider: releases
api_key:
secure: YHtw/GdMVgcyNJ0rLnhJX8baIUwK4NuWpOVtPkcP0Zupf+aSy12EgW+AjnJb/JFB9QKJGcXl+OCqwvGCcOmNSBgkPWDtFX54V6nUeJxHobogwJ6g6cOyZSwZvs/8+KaU5dWez45VNMzMAUyD51xEUybTKe4gxi1Fh7yefO9KNTSQpuiLYfY3vrH4Zn1l+2w8+pVlyEJ+oKWJS0zoNdSqRMCptzM04onwyPi0rrrOXpvqftJYxgGlPMlxHYqe96gDBJCI4R99SDF5f65NurHeW/XOECtFLj/WRcXrJW3T5Skb+8Ojqm65ZnYzsx9x2D1l6aCt5Oo6uUxx5Vnv8gN8dy3oRQ27VdNwsK3GHbWpXrijruw+6/6bJkTM1/t3vQk7IZWv+hAexCpunBlrlM7qtfgqHOc1obkecdlqmlZE+o1XqLJCm3fFkciQYVvqdT6Yw/sNJbL09apwO21Ja2KqcTC1n+Q38g6jaYlRW122+wUV+RQ/tunYvW/wWhGN8n3argU4NK4kiIKaBtCAy+QHEzGqA6M148OrieFkHKdswLfPVNj0bVMd+AX/06iuUx8SBDg7KUsaqRVNez+MaTWzK7fHWe5j9sJv6ZK6qNXEPDar6XEKPXHrMSAev7VoAuEFh24IAOhvTUdpLPW4GiVcACtSJaJWA9RdYKAFj0drCps=
file_glob: true
file:
- live*.tar.gz
skip_cleanup: true
on:
tags: true