Skip to content

Commit

Permalink
Closes #5578
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 27, 2023
1 parent d56f8ac commit af17478
Show file tree
Hide file tree
Showing 5 changed files with 1,552 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
tools: none

- name: Install dependencies with Composer
run: ./tools/composer update --no-interaction --no-ansi --no-progress
run: ./tools/composer install --no-interaction --no-ansi --no-progress

- name: Run Psalm on public API
run: ./tools/psalm --config=.psalm/static-analysis.xml --no-progress --show-info=false
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
tools: none

- name: Install dependencies with Composer
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
run: php ./tools/composer install --no-ansi --no-interaction --no-progress

- name: Run tests with PHPUnit
run: php ./phpunit --testsuite unit
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
tools: none

- name: Install dependencies with Composer
run: php ./tools/composer update --no-ansi --no-interaction --no-progress
run: php ./tools/composer install --no-ansi --no-interaction --no-progress

- name: Run tests with PHPUnit
run: php ./phpunit --testsuite end-to-end
Expand All @@ -173,7 +173,7 @@ jobs:
tools: none

- name: Install dependencies with Composer
run: ./tools/composer update --no-ansi --no-interaction --no-progress
run: ./tools/composer install --no-ansi --no-interaction --no-progress

- name: Collect code coverage with PHPUnit
run: ./phpunit --coverage-clover=coverage.xml
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

# Composer
/vendor
/composer.lock

# Apache Ant
/.ant_targets
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog-10.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ All notable changes of the PHPUnit 10.5 release series are documented in this fi
* [#5551](https://github.com/sebastianbergmann/phpunit/issues/5551): Support for omitting parameter default values for `willReturnMap()`
* [#5577](https://github.com/sebastianbergmann/phpunit/issues/5577): `--composer-lock` CLI option for PHAR binary that displays the `composer.lock` used to build the PHAR

### Changed

* [#5578](https://github.com/sebastianbergmann/phpunit/issues/5578): Put `composer.lock` under version control

[10.5.0]: https://github.com/sebastianbergmann/phpunit/compare/10.4...10.5
6 changes: 2 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<delete dir="${basedir}/build/artifacts"/>
<delete dir="${basedir}/build/tmp"/>
<delete dir="${basedir}/vendor"/>
<delete file="${basedir}/composer.lock"/>

<property name="clean.done" value="true"/>
</target>
Expand All @@ -30,12 +29,12 @@
</target>

<target name="-dependencies-installed">
<available file="${basedir}/composer.lock" property="dependencies-installed"/>
<available type="dir" file="${basedir}/vendor" property="dependencies-installed"/>
</target>

<target name="install-dependencies" unless="dependencies-installed" depends="-dependencies-installed,validate-composer-json" description="Install dependencies with Composer">
<exec executable="${basedir}/tools/composer" taskname="composer">
<arg value="update"/>
<arg value="install"/>
<arg value="--no-interaction"/>
<arg value="--no-progress"/>
<arg value="--no-ansi"/>
Expand Down Expand Up @@ -376,7 +375,6 @@

<target name="build-phar-and-run-phar-specific-tests" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it">
<delete dir="${basedir}/vendor"/>
<delete file="${basedir}/composer.lock"/>

<antcall target="run-phar-specific-tests"/>
</target>
Expand Down
Loading

0 comments on commit af17478

Please sign in to comment.