Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit ae2cb37

Browse files
committed
Minor CI fix
1 parent 1ef2161 commit ae2cb37

File tree

5 files changed

+61
-9
lines changed

5 files changed

+61
-9
lines changed

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,27 @@ matrix:
1111
fast_finish: true
1212
include:
1313
- php: 5.5
14-
env:
15-
- TRADITIONAL_PHP=true
1614
- php: 5.6
1715
env:
18-
- TRADITIONAL_PHP=true
1916
- EXECUTE_DEPLOYMENT=true
2017
- php: 7.0
21-
env:
22-
- TRADITIONAL_PHP=true
2318
- php: hhvm
24-
env:
25-
- TRADITIONAL_PHP=false
2619
allow_failures:
2720
- php: hhvm
2821

2922
before_install:
3023
- openssl aes-256-cbc -K $encrypted_f21abcc37842_key -iv $encrypted_f21abcc37842_iv
3124
-in .travis/secrets.tar.enc -out .travis/secrets.tar -d
32-
- if [[ $TRADITIONAL_PHP == 'true' ]]; then phpenv config-rm xdebug.ini ; fi
25+
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini ; fi
3326
- travis_retry composer self-update
3427

3528
install:
36-
- travis_retry composer install --prefer-dist --no-interaction
29+
- travis_retry composer install --prefer-source --no-interaction
3730
- composer info -i
3831

32+
script:
33+
- vendor/bin/phpunit
34+
3935
after_success:
4036
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then composer install --no-dev --prefer-dist --no-interaction ; fi
4137
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./bin/deploy.sh ; fi

phpunit.hhvm.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="./phpunit.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="true"
12+
verbose="true"
13+
>
14+
<testsuites>
15+
<testsuite name="jupyter-php-installer/tests">
16+
<directory suffix=".php">./tests/</directory>
17+
</testsuite>
18+
</testsuites>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">./src/</directory>
22+
</whitelist>
23+
</filter>
24+
</phpunit>

phpunit.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
include __DIR__.'/vendor/autoload.php';

phpunit.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="./phpunit.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="true"
12+
verbose="true"
13+
>
14+
<testsuites>
15+
<testsuite name="jupyter-php-installer/tests">
16+
<directory suffix=".php">./tests/</directory>
17+
</testsuite>
18+
</testsuites>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">./src/</directory>
22+
</whitelist>
23+
</filter>
24+
<logging>
25+
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
26+
<log type="coverage-html" target="coverage" showUncoveredFiles="true"/>
27+
<log type="coverage-clover" target="coverage.xml" showUncoveredFiles="true"/>
28+
</logging>
29+
</phpunit>

tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)