forked from boostorg/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 1.19 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
# Copyright (C) 2016 Daniel James.
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
dist: precise
language: php
php:
'5.3'
addons:
apt:
packages:
- php5-cgi
install:
# Install quickbook
- mkdir $HOME/bin
- wget -O $HOME/bin/quickbook https://github.com/boostorg/quickbook/releases/download/linux-binary/quickbook
- chmod a+x $HOME/bin/quickbook
- export PATH=$PATH:$HOME/bin
# Install php dependencies
- cd ${TRAVIS_BUILD_DIR}/common/code/test
- composer install --no-interaction --prefer-source
script:
# Run the tests
- cd ${TRAVIS_BUILD_DIR}/common/code/test
- ./vendor/bin/tester -p php tests
- ./vendor/bin/tester -p php5-cgi tests
# Check php files are valid php 5.3
- cd ${TRAVIS_BUILD_DIR}/
- 'find * -name "vendor" -prune -o -name "*.php" -print | xargs grep -L "CONTAINS_SYNTAX_ERROR" | xargs -n 1 php -l'
# Try running the site tools to check if the change has introduced any errors
# into their source and data files
- ./site-tools/update-doc-list.php
- ./site-tools/update-pages.php
- git status