-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (50 loc) · 2.39 KB
/
Copy path.travis.yml
File metadata and controls
58 lines (50 loc) · 2.39 KB
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
language: cpp
compiler:
- gcc
#- clang
env:
- GCC_VERSION="4.9"
- GCC_VERSION="4.8"
before_install:
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
- sudo apt-get update -qq
- sudo apt-get install libasound2-dev
- sudo apt-get install libfreetype6-dev
- sudo apt-get install libxft-dev
- sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-${GCC_VERSION}; fi
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq gcc-${GCC_VERSION}; fi
- if [ "$CXX" == "g++" ]; then sudo ln -s -v -f $(which g++-${GCC_VERSION}) /usr/bin/g++; fi
- if [ "$CXX" == "g++" ]; then sudo ln -s -v -f $(which gcc-${GCC_VERSION}) /usr/bin/gcc; fi
- if [ "$LIBCXX" == "true" ]; then cwd=$(pwd); fi
- if [ "$LIBCXX" == "true" ]; then export CXXFLAGS="-std=c++0x -stdlib=libc++"; fi
- if [ "$LIBCXX" == "true" ]; then svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx; fi
- if [ "$LIBCXX" == "true" ]; then cd libcxx/lib && bash buildit; fi
- if [ "$LIBCXX" == "true" ]; then sudo cp ./libc++.so.1.0 /usr/lib/; fi
- if [ "$LIBCXX" == "true" ]; then sudo mkdir /usr/include/c++/v1; fi
- if [ "$LIBCXX" == "true" ]; then cd .. && sudo cp -r include/* /usr/include/c++/v1/; fi
- if [ "$LIBCXX" == "true" ]; then cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so; fi
- if [ "$LIBCXX" == "true" ]; then sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd; fi
- if [ "$LIBCXX" == "true" ]; then CXX_FLAGS="${CXX_FLAGS} -stdlib=libc++ -I/usr/include/c++/v1/"; fi
- if [ "$LIBCXX" == "true" ]; then CXX_LINKER_FLAGS="${CXX_LINKER_FLAGS} -stdlib=libc++ -L/usr/lib/ -lc++"; fi
install:
- wget http://apt.biicode.com/install.sh && chmod +x install.sh && ./install.sh
- bii setup:cpp
- $CXX --version
script:
- bii init -l simple
- bii find --update
- bii deps
- bii configure
- bii build
before_deploy:
- rm -f install.sh
- rm -f *.log
deploy:
provider: biicode
user: "qiangwu"
password:
secure: "MPrdX+Ax3b+amXC9dkeWq4eNmCO47cgOo7YEt1+bHNk1P263yWQJhfbigSrxsOacdn5lU1ZIQgMoyCJJ+1t7bC/uF+H9vFu6xtSujpulAlKNjdLguiZs6AzTPsNe8z5pz7E7On5pyXVAaUzX99cklHGvfyetAbudL85
7RzOiH0Q="
skip_cleanup: true