This is a working example of how you can integrate a drush_make process with Pantheon using TravisCI and some behat testing. Pretty suave!
Feel free to hack this to heck for your own personal use-cases.
This repo is meant to be run on TravicCI, which is free for public GitHub repos (thanks, Travis!). You can be up and running with your own fork in just a few steps.
-
Create a new Pantheon site which is the "target" for your build. Use the vanilla version of core that you want to use. For this example, that was Drupal 7.
-
You will need to create a new SSH keypair to push code to Pantheon.
ssh-keygen -q -f travis-ci-key -t rsa -P '' -C 'travis-ci-key'
-
Add the resulting
travis-ci-key.pubto the Pantheon user account you want Travis acting as. You can also set up a separate user for this to keep things separate more separate. I have mine acting as "[email protected]" to keep it on lockdown. -
Use
travis encrypt_fileoption to encrypt and place in the ci repository. This will allow it to push code to pantheon as the user you set up in #3. -
Update
.travis.ymlwith thePUUIDandPNAMEvalues for your own site. -
Use the (
travis encrypt)[http://docs.travis-ci.com/user/build-configuration/#Secure-environment-variables] command to add secure/secret environment variables to.travis.ymlforPEMAIL(your Pantheon user email) andPPASS(the user passsword). -
Still in
.travis.yml, update thebefore_installstep to use the key you added in step 3. -
Finally, update
behat.ymlwith your ownbase_urlfor testing.
At this point you can push these changes to the ci repo up to github, log into Travis, add the ci repo, and the test should run.
You're free to start hacking on the make file, the install steps, and the tests.
Pull requests are welcome!