forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (39 loc) · 1.01 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
language: cpp
cache:
bundler: true
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/docker
- $TRAVIS_BUILD_DIR/external/Paddle/build/third_party
sudo: required
dist: trusty
services:
- docker
os:
- linux
addons:
apt:
packages:
- git
- python
- python-pip
- python2.7-dev
ssh_known_hosts: 13.229.163.131
before_install:
- sudo pip install pylint pytest astroid isort
before_install:
- sudo pip install pylint pytest astroid isort
# Force the script to be timed out after certain duration
- function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
jobs:
include:
# Force the deploy_docs.sh to time out after 40 minutes.
# Travis CI will terminate the build completely after 50 minutes and won't allow caching to happen.
# Time out the build preemptively to cache built libraries.
- script: timeout 2400 scripts/deploy_docs.sh full
name: Generate Docs
notifications:
email:
on_success: change
on_failure: always