-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
72 lines (63 loc) · 1.49 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
sudo: false
dist: trusty
language: cpp
cache:
- apt: true
- ccache
git:
submodules: false
notifications:
slack: dicl:WvBJLVrHw7j1IaIZun64ncjE
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- libboost1.55-all-dev
- build-essential
- gcc-4.9
- g++-4.9
- libunittest++-dev
- doxygen
- gdb
- libzookeeper-mt-dev
before_script:
- export CXX=g++-4.9
- mkdir build
script:
- sh autogen.sh
- cd build
- sh ../configure --prefix=`pwd`
- make -j4
- make install
- make -j4 check
before_install:
- openssl aes-256-cbc -K $encrypted_ef049681a331_key -iv $encrypted_ef049681a331_iv -in ./doc/deploy_key.enc -out deploy_key -d
- cp -f deploy_key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
after_success: |
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
[ "$TRAVIS_PULL_REQUEST" == "false" ]; then
cd ..
git config --global user.email "Travis"
git config --global user.name "Travis"
git submodule init
git submodule update
git submodule add -b gh-pages -f [email protected]:DICL/VeloxDFS ./doc/html
git submodule update --init -- ./doc/html
cd doc/html
git checkout gh-pages
rm -rf *
cd ../
doxygen
cd html
git add .
git commit -m "API: $TRAVIS_TAG"
git push origin gh-pages
bash .github/make_release.sh
git push --tags
fi