forked from akeneo/pim-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (25 loc) · 994 Bytes
/
.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: php
php: 7.1
dist: trusty
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache/files
# disable xdebug
before_install:
- phpenv config-rm xdebug.ini
- export PATH=$HOME/.local/bin:$PATH
- mysql -e 'CREATE DATABASE IF NOT EXISTS akeneo_pim;'
# command to install dependencies
install:
- "pip install --user `whoami` sphinx~=1.5.3 git+https://github.com/fabpot/sphinx-php.git git+https://github.com/mickaelandrieu/sphinxcontrib.youtube.git"
# command to run tests
script:
- composer install --no-ansi --no-interaction --no-progress
- sphinx-build -nWT -b linkcheck . _build/
# Flags used here
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# -T Displays the full stack trace if an unhandled exception occurs.
# -b Linkcheck builder checks for broken links.