-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
74 lines (62 loc) · 1.97 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
script:
- mkdir debug && cd debug
- cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make
- ../bin/run-tests
- cd ../src/Extensions/JavaScript
- npm install
- tsc
- ../../../bin/l10ns extension-run-tests
git:
# Handle git submodules by ourselves.
submodules: false
before_install:
# Use sed to replace the SSH URL with the public URL, then initialize submodules.
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
# nodejs
- curl -sL https://deb.nodesource.com/setup_7.x | sudo bash
- sudo apt-get update -y
- sudo apt-get install nodejs
- sudo npm install typescript tslint -g
# libmicrohttpd
- curl -O http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
- tar -xvf libmicrohttpd-0.9.52.tar.gz
- cd libmicrohttpd-0.9.52
- ./configure && make
- sudo make install && sudo ldconfig
- cd .. && sudo rm -rf libmicrohttpd-0.9.52
# jsoncpp
- git clone git://github.com/open-source-parsers/jsoncpp.git
- mkdir -p jsoncpp/build
- cd jsoncpp/build
- cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ..
- make
- sudo make install && sudo ldconfig
- cd ../../ && rm -rf jsoncpp
# libjson-rpc-cpp
- git clone git://github.com/tinganho/libjson-rpc-cpp.git
- mkdir -p libjson-rpc-cpp/build
- cd libjson-rpc-cpp/build
- cmake -DCMAKE_BUILD_TYPE=Debug -DHTTP_CLIENT=YES -DHTTP_SERVER=YES -DCOMPILE_STUBGEN=YES ..
- make
- sudo make install && sudo ldconfig
- cd ../../ && rm -rf libjson-rpc-cpp
matrix:
include:
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
- cmake
- libboost-all-dev
- libargtable2-dev
env: COMPILER=clang++-3.7