forked from Qihoo360/evpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (46 loc) · 1.11 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
dist: trusty
language: cpp
compiler:
- g++
branches:
only:
- master
- dev
env:
global:
- CI_HOME=`pwd`
install:
- sudo apt-get install libboost-all-dev -y
- sudo apt-get install libevent-dev -y
- sudo apt-get install libgflags-dev -y
- sudo apt-get install libgtest-dev -y
- sudo apt-get install libgoogle-glog-dev -y
script:
- g++ --version
- cmake --version
- cd $CI_HOME
- pwd
- git submodule update --init --recursive
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=debug ..
- make -j2
- cd ..
- mkdir build-release && cd build-release
- cmake -DCMAKE_BUILD_TYPE=release ..
- make -j2
- pwd
after_success:
- cd $CI_HOME
- pwd
- curl -L https://github.com/nsqio/nsq/releases/download/v0.3.8/nsq-0.3.8.linux-amd64.go1.6.2.tar.gz -o nsq-0.3.8.linux-amd64.go1.6.2.tar.gz
- tar zxvf nsq-0.3.8.linux-amd64.go1.6.2.tar.gz
- pwd
- make test -C build
- make test -C build-release
- cd $CI_HOME
- pwd
- cd tools/test_scripts
- pwd
- /bin/bash ./evnsq_test.sh
- pwd
# - coveralls --exclude dependencies --exclude test --gcov /usr/bin/gcov-5