Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit Travis CI builds to .phar, which isn't tested on GH #1373

Merged
merged 1 commit into from
Oct 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 5 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,21 @@ jobs:
phpdbg -qrr $PHPUNIT_BIN;
fi
- |
if [[ "$DEPS" == "LOW" ]]; then
./tests/e2e_tests bin/infection;
else
if [[ "$DEPS" != "LOW" ]]; then
make compile;
./tests/e2e_tests build/infection.phar;
fi
- if [[ "$DRIVER" == "none" ]]; then xdebug_disable; fi
- |
echo "Infection flags: ${INFECTION_FLAGS}";

if [[ "$DRIVER" == "none" ]]; then
if [[ "$DEPS" == "LOW" || "$DRIVER" == "none" || "$MIN_MSI_CHECK" != "true" ]]; then
echo "Not running Infection during this build."
exit 0
elif [[ "$DRIVER" != "phpdbg" ]]; then
bin/infection $INFECTION_FLAGS;
build/infection.phar $INFECTION_FLAGS;
else
phpdbg -qrr bin/infection $INFECTION_FLAGS;
phpdbg -qrr build/infection.phar $INFECTION_FLAGS;
fi

-
Expand All @@ -99,17 +98,6 @@ jobs:
php: 7.4
env: DRIVER="phpdbg"

-
<<: *STANDARD_TEST_JOB
php: nightly
env: DRIVER="phpdbg"
script:
# We don't have Xdebug on the nightly build, so we always run with phpdbg
- make compile
- ./tests/e2e_tests build/infection.phar
- phpdbg -qrr $PHPUNIT_BIN
- phpdbg -qrr bin/infection $INFECTION_FLAGS

- stage: Deploy
php: 7.4
env:
Expand All @@ -135,6 +123,3 @@ jobs:
tags: true
repo: infection/infection

allow_failures:
- php: nightly
env: DRIVER="phpdbg"