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

Fixes #379: Adding init tasks for ci config. #389

Merged
merged 1 commit into from
Sep 14, 2016
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
8 changes: 8 additions & 0 deletions phing/tasks/ci.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
</phingcall>
</target>

<target name="ci:pipelines:init" description="Initializes default Acquia Pipelines configuration for this project.">
<copy file="${blt.root}/scripts/pipelines/acquia-pipelines.yml" tofile="${repo.root}/acquia-pipelines.yml"/>
</target>

<target name="ci:travis:init" description="Initializes default Travis CI configuration for this project.">
<copy file="${blt.root}/scripts/travis/.travis.yml" tofile="${repo.root}/.travis.yml"/>
</target>

<target name="ci:tugboat:init" description="Initializes default tugboat configuration for this project.">
<copy file="${blt.root}/scripts/tugboat/Makefile" tofile="${repo.root}/Makefile"/>
<copy file="${blt.root}/scripts/tugboat/tugboat.drushrc.aliases.php" todir="${repo.root}/drush/site-aliases">
Expand Down
1 change: 0 additions & 1 deletion scripts/blt/convert-to-composer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Installing blt alias"
yes | ./vendor/acquia/blt/blt.sh install-alias
./vendor/acquia/blt/blt.sh init
./vendor/acquia/blt/blt.sh configure
composer update

echo "Update complete. Please do the following:"
Expand Down
1 change: 1 addition & 0 deletions scripts/blt/rsync-include-if-does-not-exist.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# These files from template dir will be included if they do not yet exist. They will not overwrite
# existing files.
.gitattributes
project.yml
composer.json
README.md
Expand Down
2 changes: 1 addition & 1 deletion template/.travis.yml → scripts/travis/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ before_script:
# Clear drush release history cache, to pick up new releases.
- rm -f ~/.drush/cache/download/*---updates.drupal.org-release-history-*
# Verify that no git diffs (caused by line ending variation) exist.
- git diff --exit-code
# - git diff --exit-code
# 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.
- drupal yaml:update:value project.yml project.local.hostname '127.0.0.1:8888'

Expand Down
4 changes: 0 additions & 4 deletions tests/phpunit/Blt/BltTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public function testBltCreate() {
$this->assertFileNotExists($this->newProjectDir . '/install');
$this->assertFileNotExists($this->newProjectDir . '/tests/phpunit/BltTest.php');
$this->assertFileExists($this->newProjectDir . '/vendor');
$this->assertNotContains(
'pt:self-test',
file_get_contents($this->newProjectDir . '/.travis.yml')
);
$this->assertFileNotExists($this->newProjectDir . '/build/tasks/blt.xml');
$this->assertNotContains(
'${project.machine_name}',
Expand Down