forked from LibVNC/x11vnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (18 loc) · 1007 Bytes
/
.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
language: c
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
# install all vnc-related dependencies
before_install:
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get build-dep x11vnc; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall openssl && brew install openssl --universal --without-test; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS" LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS" PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://github.com/LibVNC/libvncserver/archive/LibVNCServer-0.9.10.tar.gz; tar xzf LibVNCServer-0.9.10.tar.gz; cd libvncserver-LibVNCServer-0.9.10; autoreconf -fi; ./configure; make; sudo make install; cd ..; fi'
# before build script, run autoreconf
before_script: autoreconf -fiv
# Default is "./configure && make && make test", but no tests yet
script: "./configure && make"