GithubHelp home page GithubHelp logo

mparker17 / drush-make-ci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshkoenig/drush-make-ci

0.0 1.0 0.0 231 KB

An example of how to integrate a drush_make process, TravisCI and Pantheon. Feel free to hack this to all hell for your own specific use-case.

drush-make-ci's Introduction

Build Status

Build Status

drush_make + TravisCI = awesome

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.

Getting Started

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.

  1. 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.

  2. 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'
  1. Add the resulting travis-ci-key.pub to 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.

  2. Use travis encrypt_file option 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.

  3. Update .travis.yml with the PUUID and PNAME values for your own site.

  4. Use the (travis encrypt)[http://docs.travis-ci.com/user/build-configuration/#Secure-environment-variables] command to add secure/secret environment variables to .travis.yml for PEMAIL (your Pantheon user email) and PPASS (the user passsword).

  5. Still in .travis.yml, update the before_install step to use the key you added in step 3.

  6. Finally, update behat.yml with your own base_url for 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!

drush-make-ci's People

Contributors

timani avatar bmackinney avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.