Skip to content

Instantly share code, notes, and snippets.

@yanniboi
Last active December 9, 2015 14:02
Show Gist options
  • Select an option

  • Save yanniboi/21c53631e0d88ff5a82c to your computer and use it in GitHub Desktop.

Select an option

Save yanniboi/21c53631e0d88ff5a82c to your computer and use it in GitHub Desktop.
Working Drupal Travis File
# @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