forked from logcabin/logcabin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.1 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
language: cpp
compiler:
- gcc
before_install:
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH"
- echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
- openssl aes-256-cbc
-K $encrypted_74e7c0811ff1_key
-iv $encrypted_74e7c0811ff1_iv
-in travisci_rsa.enc
-out travisci_rsa -d &&
chmod 0600 travisci_rsa &&
mv travisci_rsa ~/.ssh/id_rsa ||
echo "Failed to set up SSH key for doxygen output"
- sudo apt-get install -y protobuf-compiler libprotobuf-dev
- sudo apt-get install -y libcrypto++-dev
- sudo apt-get --no-install-recommends install -y doxygen
- echo "HTML_TIMESTAMP = no" >> docs/Doxyfile
script:
- scons NUMCPUS=2
- VERBOSE=1 build/test/test --gtest_filter='-*TimingSensitive*'
- VERBOSE=1 build/test/test --gtest_filter='*TimingSensitive*' || true
- ./build/Examples/SmokeTest --mock
- scons check
- scons docs; DOCS_STATUS=$?; (exit $DOCS_STATUS)
- if [ $DOCS_STATUS -eq 0 -a "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
./scripts/publish-doxygen;
else
echo "Not pushing doxygen, sons docs=$DOCS_STATUS, TRAVIS_BRANCH=$TRAVIS_BRANCH, TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST";
fi