Last active
December 9, 2015 14:02
-
-
Save yanniboi/21c53631e0d88ff5a82c to your computer and use it in GitHub Desktop.
Working Drupal Travis File
This file contains hidden or 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
| # @file | |
| # .travis.yml - Drupal 8 Travis CI Integration | |
| language: php | |
| php: | |
| - 5.6 | |
| mysql: | |
| database: drupal | |
| username: root | |
| encoding: utf8 | |
| before_install: | |
| # possibly optional | |
| - sudo apt-get update > /dev/null | |
| - composer self-update | |
| install: | |
| # add composer's global bin directory to the path | |
| # see: https://github.com/drush-ops/drush#install---composer | |
| - export PATH="$HOME/.composer/vendor/bin:$PATH" | |
| # Install Drush | |
| - composer global require drush/drush:dev-master | |
| - phpenv rehash | |
| # Create MySQL Database | |
| - mysql -e 'create database drupal;' | |
| # Download Drupal | |
| - cd .. | |
| - drush dl drupal-8 --drupal-project-rename=drupal | |
| - mv decoupled_auth drupal/modules | |
| - cd drupal | |
| # Install drupal default profile | |
| - drush --verbose site-install --db-url=mysql://root:@127.0.0.1/drupal --yes | |
| - drush en -y decoupled_auth | |
| # Move into core directory for phpunits benefit | |
| - cd core | |
| # only test our module tests | |
| script: phpunit --group decoupled_auth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment