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

[ChangelogLinker] [MonorepoBuilder] Fix Travis-related Tagging #952

Merged
merged 2 commits into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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