-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (52 loc) · 1.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php
sudo: false
addons:
apt:
packages:
- parallel
- php-dom
php:
- 7
- 7.1
- 7.2
git:
depth: 1
matrix:
#allow_failures:
# - php: hhvm
fast_finish: true
before_install:
# Disable XDebug to speed up execution.
- phpenv config-rm xdebug.ini
# phantomjs is only needed for JS tests.
- phantomjs --version;
- export PATH=$HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH;
- phantomjs --version;
- if [[ $(phantomjs --version) != '2.1.1' ]]; then rm -rf $HOME/travis_phantomjs; mkdir -p $HOME/travis_phantomjs; wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; tar -xvf $HOME/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $HOME/travis_phantomjs; fi;
- phantomjs --version
# Always update Composer to the recent version, otherwise the drush
# installation fails.
#- composer selfupdate --stable
install:
# Add composer's global bin directory to the path.
#- export PATH="$HOME/.composer/vendor/bin:$PATH"
# Install drush globally
#- composer global require drush/drush:$DRUSH_VERSION
#- composer global require drupal/coder:$CODER_VERSION
- npm install
- npm install -g gulp
- gulp build
before_script:
- cp -r src/app/tests dist/app/tests
#- npm install
#- npm install -g gulp
#- gulp build
script:
# PHP lint
- >
echo;
echo "Running PHP lint";
find . -name \*.php ! -path "./vendor/*" ! -name "test_with_parse_error.php" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- php -S localhost:8080 -t dist > php-server.log 2>&1 &
- php dist/app/tests/index.php
- cat php-server.log