-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
40 lines (33 loc) · 826 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
language: cpp
branches:
only:
- master
addons:
apt:
packages:
- g++-4.9
- clang++-3.7
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
compiler: g++
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
script:
- git clone https://github.com/google/googletest.git
- mkdir build_gtest
- cd build_gtest
- cmake ../googletest/
- make
- sudo make install
- cd ..
- sudo apt-get install libboost-all-dev
- sudo ./build_mahjong.sh --update-code-completion
- ./build_mahjong.sh --lib test
- ./build_mahjong.sh --player all
- ./build_mahjong.sh --game simple norun
- export CXX="clang++-3.7"
- ./build_mahjong.sh --lib test
- ./build_mahjong.sh --player all
- ./build_mahjong.sh --game simple norun
sudo: required