Skip to content

Commit

Permalink
Rename "nightly" PHAR build to "snapshot"
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 23, 2021
1 parent 75018ac commit 5f1b587
Show file tree
Hide file tree
Showing 3 changed files with 9 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 @@ -246,13 +246,13 @@ jobs:
java-version: 1.8

- name: Build unscoped PHAR for testing
run: ant unscoped-phar-nightly
run: ant unscoped-phar-snapshot

- name: Run regular tests with unscoped PHAR
run: ./build/artifacts/phpunit-nightly.phar
run: ./build/artifacts/phpunit-snapshot.phar

- name: Build scoped PHAR for testing
run: ant phar-nightly
run: ant phar-snapshot

- name: Run PHAR-specific tests with scoped PHAR
run: ./build/artifacts/phpunit-nightly.phar --configuration tests/phar/phpunit.xml
run: ./build/artifacts/phpunit-snapshot.phar --configuration tests/phar/phpunit.xml
8 changes: 4 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@
</antcall>
</target>

<target name="phar-nightly" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (nightly)">
<target name="phar-snapshot" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (snapshot)">
<antcall target="-phar-build">
<param name="type" value="nightly"/>
<param name="type" value="snapshot"/>
<param name="scope" value="true"/>
</antcall>
</target>

<target name="unscoped-phar-nightly" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (nightly)">
<target name="unscoped-phar-snapshot" depends="-phar-prepare" description="Create PHAR archive of PHPUnit and all its dependencies (snapshot)">
<antcall target="-phar-build">
<param name="type" value="nightly"/>
<param name="type" value="snapshot"/>
<param name="scope" value="false"/>
</antcall>
</target>
Expand Down
2 changes: 1 addition & 1 deletion src/Runner/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function getVersionString(): string
public static function getReleaseChannel(): string
{
if (strpos(self::$pharVersion, '-') !== false) {
return '-nightly';
return '-snapshot';
}

return '';
Expand Down

0 comments on commit 5f1b587

Please sign in to comment.