-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
115 lines (98 loc) · 4.02 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
# Travis CI script
language:
c
cache:
- ccache
dist:
focal
git:
depth: 100
env:
global:
- SPHACTOR_SOCKET_LIMIT=20
- secure: "jiwQYGY6DkwHRSqCZq2kjtzlE95hP7x4BEqd9a7PayzR8N2dj7PIG8WBA7TfrCxEQISGWtUaaDMlgRufmoSheJOlL0G9dtH3sXDRlLiAUV+qofp2+cbQth6L5NFQ2qwZcBiZvIWWwzSnSsPuNqfGGzcF95cxDMJdLp18PZtrBu5wahsrZVlCdyCSZ8fS6QCnX6SjEkg4zxrTqtipADxpibFoMN29eMS4sfmM5zTopFavYULp3PFhCKYu6/yyhux7LCD5QuvUctg0YKSvDae1z2EzGPqNNuo2bHEMrAabYkPcSE/hSFXJzzjFIvq7J5WpCKwG/ie3g6KWiwHEj5+wP15RQL5ajGvVW6n24qG0KUHhihivBhm7B9RvCyafStLkVsSqmnHHVsLZ2MQjancrcQGdUN4KYHC96Svd5eQJbSNR0KgiRcq8r9qOC34iCDCXTQ23gD11MjYqpjbh4vfeWswAK6C+s8AyIT1yItMPm4Xwd/VSPSt+onax/swYWgFk93NAyXp2CYZtBbLJ3qnxNxJHuzSHclSeaWeg87LYGId9rMVvWvydb/ahdRPoH/ZatVXk8RcD3xhR99abBNYdJ5v8qNXxJz7j640qW8JBiXLx+NqhsR53U7e+7MR4KMBaUvpO/pTT4RYVo9e78Ccsz0X9N7Mvcib4XOcVRlqzkgk="
addons:
apt:
packages: &base_deps
- git
- mesa-common-dev
- libasound2-dev
- libglew-dev
- libunwind-dev
- sshpass
ssh_known_hosts: pong.hku.nl
# homebrew:
# taps: hudochenkov/sshpass
# packages: sshpass
# update: true
# packages:
# - binutils
# - valgrind
matrix:
include:
- env: BUILD_TYPE=default
os: osx
# osx_image:
- env: BUILD_TYPE=default
os: linux
install:
- git submodule update --init --recursive
# libzmq
- git clone --depth=1 --branch=master https://github.com/zeromq/libzmq
- cd libzmq
- ./autogen.sh
- ./configure
- sudo make install
- cd -
# python
- export BUILD_DIR=$TRAVIS_BUILD_DIR/build
- mkdir $BUILD_DIR
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_PULL_REQUEST" == "false" ] ; then
./dist/osx/build_python.sh $BUILD_DIR/python ;
fi
script:
############################################################################
# Build main and tests
############################################################################
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TRAVIS_PULL_REQUEST" == "false" ];
then export CMAKE_OPTIONS="-DPython3_ROOT_DIR=$BUILD_DIR/python -DWITH_EMBED_PYTHON=ON";
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CMAKE_OPTIONS="$CMAKE_OPTIONS -DWITH_OPENVR=OFF"; fi
- mkdir -p build
- cd build
- cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS=${CXX_FLAGS} -DCMAKE_BUILD_TYPE=Coverage ..
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then make install; else make; fi
# test
# Skip for now!
# - mv ../test.txt ./bin/test.txt
# - cd bin
# - if [ "$BUILD_TYPE" == "valgrind" ] ; then valgrind --leak-check=yes ./gazebosc -test ; fi
# - if [ "$BUILD_TYPE" != "valgrind" ] ; then ./gazebosc -test ; fi
after_success:
- git fetch --all --tags
- cd $TRAVIS_BUILD_DIR/build/bin
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
if [ -n "$TRAVIS_TAG" ] || [[ $TRAVIS_BRANCH == "master" ]]; then
zip -q -r $( echo $TRAVIS_REPO_SLUG | cut -d"/" -f2)_${TRAVIS_OS_NAME}_$( git describe --tag --always --dirty --abbrev=4).zip * -x "*/test/*" "*/__pycache__/*";
else
zip -q -r $( echo $TRAVIS_REPO_SLUG | cut -d"/" -f2)_${TRAVIS_OS_NAME}_${TRAVIS_BRANCH}_$( git describe --tag --always --dirty --abbrev=4).zip * -x "*/test/*" "*/__pycache__/*";
fi
fi
- echo '|1|AurlN3z7WhvxYbuNdsouT5s7FYs=|cjTFODbUXIXKeWihh1BjnfXgARw= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFxUlmYnS6gItSE4QuXpJxVFqhatyadmYaSQ+GPYwna9bs3KoWxfYl2j0ijA4aVAPPZLjLAjNbxd26fIrocW5fQ=' >> $HOME/.ssh/known_hosts
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
git clone https://github.com/clarkwang/passh.git;
cd passh;
cc -o passh passh.c;
./passh -p env:BBPWD scp ../gazebosc*.zip [email protected]:public_html/nightly/;
fi
deploy:
provider: releases
api_key:
secure: "AxEB/OeZa4c8K6mdUPXL4EDV0zqdIlhuSa6Bnank7qMZ8klYudOUitLC79vV4rYsG0+PX0OjIgSBaTT7euAgLfTKaE/YiTR+HtvZW3fQQEnsVWbobCDkDqGN5a1O5dM31YWFkURjEAFVYpYa6h2CgQtQ4NMtWllOmt3Ddgn7yPomw1dBnkoGWSPpEBw0Cm7k76wI2Mwuqlf6Zjby4W7Jm7Xn+G6WFPfYc"
file_glob: true
file: build/bin/*.zip
cleanup: true
overwrite: true
on:
tags: true
repo: hku-ect/gazebosc