blob: 81db15eecbf8a48eb230c8b86af03f483a1a1879 (
plain)
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
75
76
77
78
79
80
81
|
language: cpp
sudo: false
os:
- linux
branches:
only:
- master
notifications:
email:
recipients:
- nialldouglas14@gmail.com
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
# - llvm-toolchain-precise-3.8 ## not currently working due to bad source signing key
packages:
- g++-6
- python3
- cmake
- cmake-data
- doxygen
env:
- __="cmake tests" NAME=TravisLinuxWorker
- __="Documentation" NAME=TravisDocumentation
cache:
apt: true
directories:
- llvm-3.8.0
before_install:
-
LLVM_VERSION=3.8.0;
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
if [ -z "$(ls -A llvm-$LLVM_VERSION)" ]; then
wget -O llvm-$LLVM_VERSION.tar.xz http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz;
mkdir llvm-$LLVM_VERSION;
xzcat llvm-$LLVM_VERSION.tar.xz | tar -xvf - --strip 1 -C llvm-$LLVM_VERSION;
cd llvm-$LLVM_VERSION/bin;
ln -s clang-3.8 clang++-3.8;
cd ../..;
fi;
llvm-$LLVM_VERSION/bin/llvm-config --version;
export LLVM_CONFIG="llvm-$LLVM_VERSION/bin/llvm-config";
export PATH="$PWD/llvm-$LLVM_VERSION/bin:$PATH";
fi
- git checkout master
- git submodule update --init --recursive
script:
-
if [ "$__" = "cmake tests" ]; then
TARNAME=boost.afio-v2.0-source-`date +%Y%m%d%H%M`.tar.xz;
tar cfJ ../$TARNAME . --exclude llvm* --exclude .git;
CXX=g++-6 ctest -S .ci.cmake -V;
# && curl --data-binary @../$TARNAME https://dedi4.nedprod.com/static/files/upload/$TARNAME;
fi
-
if [ "$__" = "Documentation" ]; then
git config --global push.default simple;
git config --global user.name "Jenkins nedprod CI";
git config --global user.email "foo@nowhere";
cd doc/html;
git checkout gh-pages;
cd ../..;
CXX=g++-6 ctest -S .docs.cmake -V;
cd doc/html;
git add . || true;
git commit -a -m "Travis CI updates documentation" || true;
git push -f https://jenkins-nedprod:$JENKINS_NEDPROD_PASSWORD@github.com/ned14/boost.afio gh-pages;
cd ../..;
fi
after_success:
# - bash -x ./update_coveralls.sh `pwd`
after_failure:
|