-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests and docs for travis:ci:init command. (#398)
- Loading branch information
Showing
4 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,13 +49,12 @@ To set up this workflow, you must configure Acquia Cloud, GitHub, and Travis CI | |
1. Login to the new Acquia Cloud account and add the public SSH key from the key pair that was generated in step 1 by visiting `https://accounts.acquia.com/account/[uid]/security`. | ||
1. Add the same public SSH key to the "Deployment Keys" section on your project's GitHub settings page, located at `https://github.com/acquia-pso/[project-name]/settings/keys`. **Note: You may not have direct access to these settings if you do not have administrative control over your repository.** | ||
1. Add the _private SSH key_ to your project's Travis CI settings located at `https://magnum.travis-ci.com/acquia-pso/[project-name]/settings`. | ||
1. Uncomment the example deployment steps in your .travis.yml file and customize them to deploy your desired branch. | ||
1. Add your cloud git repository to the remotes section of your project.yml file: | ||
|
||
remotes: | ||
- [email protected]:example.git` | ||
|
||
1. Add your cloud git repository's server host name to `ssh_known_hosts` in your .travis.yml file. | ||
1. Add your cloud git repository's server host name to `ssh_known_hosts` in your .travis.yml file. Take care to remove the user name and file name (example.git) and use only the hostname. | ||
|
||
addons: | ||
ssh_known_hosts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Acquia\Blt\Tests\Blt; | ||
|
||
use Acquia\Blt\Tests\BltTestBase; | ||
|
||
/** | ||
* Class TravisCiTest. | ||
* | ||
* Verifies that Travis CI support has been initialized. | ||
*/ | ||
class TravisCiTest extends BltTestBase { | ||
|
||
/** | ||
* Tests Phing ci:travis:init target. | ||
*/ | ||
public function testTravisInit() { | ||
$this->assertFileExists($this->new_project_dir . '/.travis.yml'); | ||
} | ||
|
||
} |