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

Commit

Permalink
Merge pull request #952 from Symplify/tagging
Browse files Browse the repository at this point in the history
[ChangelogLinker] [MonorepoBuilder] Fix Travis-related Tagging
  • Loading branch information
TomasVotruba authored Jul 10, 2018
2 parents 7bffd6e + 3f796e6 commit 40e308b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
language: php

# required for "git tag" presence for MonorepoBuilder split and ChangelogLinker git tags resolver
# see https://github.com/travis-ci/travis-ci/issues/7422
git:
depth: false

matrix:
include:
- php: 7.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ public function testGetMessageWithoutPackage(): void

public function testTagDetection(): void
{
// @see https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if (getenv('TRAVIS')) {
$this->markTestSkipped('Travis makes shallow clones, so unable to test commits/tags.');
}

$pullRequest = [
'number' => 10,
'title' => '[SomePackage] SomeMessage',
Expand Down
10 changes: 0 additions & 10 deletions packages/ChangelogLinker/tests/ChangelogDumper/WithTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ protected function setUp(): void

public function testReportChanges(): void
{
// @see https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if (getenv('TRAVIS')) {
$this->markTestSkipped('Travis makes shallow clones, so unable to test commits/tags.');
}

$content = $this->changelogDumper->reportChangesWithHeadlines($this->changes, false, false, 'categories');

$this->assertStringEqualsFile(__DIR__ . '/WithTagsSource/expected1.md', $content);
Expand All @@ -49,11 +44,6 @@ public function testReportBothWithCategoriesPriority(
?string $priority,
string $expectedOutputFile
): void {
// @see https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if (getenv('TRAVIS')) {
$this->markTestSkipped('Travis makes shallow clones, so unable to test commits/tags.');
}

$content = $this->changelogDumper->reportChangesWithHeadlines(
$this->changes,
$withCategories,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ final class GitCommitDateTagResolverTest extends TestCase

protected function setUp(): void
{
// @see https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if (getenv('TRAVIS')) {
$this->markTestSkipped('Travis makes shallow clones, so unable to test commits/tags.');
}

$this->gitCommitDateTagResolver = new GitCommitDateTagResolver();
}

Expand Down

0 comments on commit 40e308b

Please sign in to comment.