Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 7a2b639

Browse files
authored
Fixes #379: Adding init tasks for ci config. (#389)
1 parent 2cec677 commit 7a2b639

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

phing/tasks/ci.xml

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
</phingcall>
1818
</target>
1919

20+
<target name="ci:pipelines:init" description="Initializes default Acquia Pipelines configuration for this project.">
21+
<copy file="${blt.root}/scripts/pipelines/acquia-pipelines.yml" tofile="${repo.root}/acquia-pipelines.yml"/>
22+
</target>
23+
24+
<target name="ci:travis:init" description="Initializes default Travis CI configuration for this project.">
25+
<copy file="${blt.root}/scripts/travis/.travis.yml" tofile="${repo.root}/.travis.yml"/>
26+
</target>
27+
2028
<target name="ci:tugboat:init" description="Initializes default tugboat configuration for this project.">
2129
<copy file="${blt.root}/scripts/tugboat/Makefile" tofile="${repo.root}/Makefile"/>
2230
<copy file="${blt.root}/scripts/tugboat/tugboat.drushrc.aliases.php" todir="${repo.root}/drush/site-aliases">

scripts/blt/convert-to-composer.sh

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
5151
echo "Installing blt alias"
5252
yes | ./vendor/acquia/blt/blt.sh install-alias
5353
./vendor/acquia/blt/blt.sh init
54-
./vendor/acquia/blt/blt.sh configure
5554
composer update
5655

5756
echo "Update complete. Please do the following:"

scripts/blt/rsync-include-if-does-not-exist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# These files from template dir will be included if they do not yet exist. They will not overwrite
22
# existing files.
3+
.gitattributes
34
project.yml
45
composer.json
56
README.md
File renamed without changes.

template/.travis.yml scripts/travis/.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ before_script:
5656
# Clear drush release history cache, to pick up new releases.
5757
- rm -f ~/.drush/cache/download/*---updates.drupal.org-release-history-*
5858
# Verify that no git diffs (caused by line ending variation) exist.
59-
- git diff --exit-code
59+
# - git diff --exit-code
6060
# The local.hostname must be set to 127.0.0.1:8888 because we are using drush runserver to run the site on Travis CI.
6161
- drupal yaml:update:value project.yml project.local.hostname '127.0.0.1:8888'
6262

tests/phpunit/Blt/BltTest.php

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ public function testBltCreate() {
2323
$this->assertFileNotExists($this->newProjectDir . '/install');
2424
$this->assertFileNotExists($this->newProjectDir . '/tests/phpunit/BltTest.php');
2525
$this->assertFileExists($this->newProjectDir . '/vendor');
26-
$this->assertNotContains(
27-
'pt:self-test',
28-
file_get_contents($this->newProjectDir . '/.travis.yml')
29-
);
3026
$this->assertFileNotExists($this->newProjectDir . '/build/tasks/blt.xml');
3127
$this->assertNotContains(
3228
'${project.machine_name}',

0 commit comments

Comments
 (0)