-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
43 lines (32 loc) · 935 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
30
31
32
33
34
35
36
37
38
39
40
41
42
language: c
compiler:
- gcc
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq cmake; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq openssl; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(brew list | grep cmake) ]]; then brew install cmake; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(brew list | grep openssl) ]]; then brew install openssl; fi
- rm -rf build
- mkdir -p build && cd build && cmake ..
after_success:
- cd test && ./unitest -a 1>/dev/null
script:
- make
install: true
branches:
only:
- master
notifications:
email: false
irc:
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
env:
global:
- LANG="zh_CN.UTF-8"
- OPENSSL_ROOT_DIR=$(brew --prefix openssl)
os:
- linux
- osx
osx_image: xcode61