-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
30 lines (22 loc) · 858 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
27
28
29
language: cpp
sudo: false
compiler:
- gcc
- clang
before_install:
- echo $LANG
- echo $LC_ALL
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libconfig; fi
install:
- curl -L https://github.com/nukedzn/psocksxx/releases/download/v1.1.1/psocksxx-1.1.1.tar.gz | tar -zx -C /tmp
- cd /tmp/psocksxx-* && ./configure --prefix=/tmp/root && make && make install
- if [ $TRAVIS_OS_NAME == linux ]; then curl -L http://www.hyperrealm.com/packages/libconfig-1.4.10.tar.gz | tar -zx -C /tmp; fi
- if [ $TRAVIS_OS_NAME == linux ]; then cd /tmp/libconfig-* && ./configure --prefix=/tmp/root && make && make install; fi
- cd ${TRAVIS_BUILD_DIR}
before_script:
- PKG_CONFIG_PATH=/tmp/root/lib/pkgconfig cmake -H. -Bbuild -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release
script:
- cmake --build build
os:
- linux
- osx