Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying template .travis.yml. #550

Merged
merged 4 commits into from
Oct 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Note that the example .travis.yml file for child projects lives in /install.
sudo: true
sudo: required
language: php
dist: trusty

Expand Down
7 changes: 4 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This test verifies that a new project can be created using `acquia/blt-project`
blt local:setup
drush uli
read -p "Press any key to continue"

# This updates to the latest dev version.
composer require acquia/blt:8.x-dev
dr uli
Expand All @@ -46,6 +46,7 @@ This test verifies that a new project can be created from scratch using blt, wit
blt vm
blt local:setup
drush @blted8.local uli
drush @blted8.local ssh blt tests:behat
read -p "Press any key to continue"
vagrant destroy
cd ../
Expand All @@ -56,13 +57,13 @@ This test verifies that a new project can be created from scratch using blt, wit
### Prerequisites

* Ruby 2.2.2+ must be installed. You may use [RVM](https://rvm.io/rvm/install) to use a directory specific version of Ruby. E.g., `rvm use 2.2.2`.
* [skywinder/github-changelog-generator](https://github.com/skywinder/github-changelog-generator) must be installed. E.g., `gem install github_changelog_generator`.
* [skywinder/github-changelog-generator](https://github.com/skywinder/github-changelog-generator) must be installed. E.g., `gem install github_changelog_generator`.
* Procure a [github api token](https://github.com/skywinder/github-changelog-generator#github-token).
* Determine the version of your future release.

Then, generate your release notes via:

github_changelog_generator --token [token] --future-release=[version]

This will update CHANGELOG.md. The information for the new release should be copied and pasted into the GitHub release draft.

2 changes: 1 addition & 1 deletion scripts/drupal-vm/post-provision.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

# Append vendor/bin to $PATH via ~/.bashrc modification.
grep -q -F 'export PATH=/var/www/$(hostname)/vendor/bin:$PATH' .bashrc || echo 'export PATH=/var/www/$(hostname)/vendor/bin:$PATH' >> .bashrc
grep -q -F 'export PATH=/var/www/$(hostname -d | cut -d"." -f 1)/vendor/bin:$PATH' .bashrc || echo 'export PATH=/var/www/$(hostname -d | cut -d"." -f 1)/vendor/bin:$PATH' >> .bashrc
6 changes: 3 additions & 3 deletions scripts/linux/install-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ BIN_DIR=$1

if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Download google chrome.
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb
apt-get -f install
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb
# apt-get -f install

# Installs chromedriver for Linux 64 bit systems.
wget -N http://chromedriver.storage.googleapis.com/2.24/chromedriver_linux64.zip
Expand Down
31 changes: 19 additions & 12 deletions scripts/travis/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Note that the example .travis.yml file for child projects lives in /install.
sudo: false
sudo: required
language: php
dist: trusty

php:
- 5.6

matrix:
fast_finish: true

cache:
bundler: true
apt: true
Expand All @@ -21,6 +25,11 @@ cache:
addons:
ssh_known_hosts:
# - svn-4786.devcloud.hosting.acquia.com
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6

# @see https://docs.travis-ci.com/user/notifications
notifications:
Expand All @@ -39,18 +48,24 @@ before_install:
- echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- git config --global user.name "Travis-CI"
- git config --global user.email "noreply@travis-ci.org"
- mysql -e 'CREATE DATABASE drupal;'
- mysql -u root -e 'CREATE DATABASE drupal;'

install:
# Load composer dependencies.
- composer validate --no-check-all --ansi
- composer install
- export PATH=$TRAVIS_BUILD_DIR/vendor/bin:$PATH
# Initialize drupal console default configuration.
- drupal init
# Install proper version of node for front end tasks.
- nvm install 4.4.1
- nvm use 4.4.1
# Initialize drupal console default configuration.
- drupal init
# Initialize xvfb (see https://docs.travis-ci.com/user/gui-and-headless-browsers)
- sudo apt-get install xvfb
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Installs chromedriver to vendor/bin.
- ./vendor/acquia/blt/scripts/linux/install-chrome.sh $TRAVIS_BUILD_DIR/vendor/bin

before_script:
# Clear drush release history cache, to pick up new releases.
Expand All @@ -70,11 +85,3 @@ deploy:
on:
branch: master
php: 5.6
# Uncomment the following section to perform deployments on more than one branch.
# This pattern be repeated for multiple integration branches.
# - provider: script
# script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="${TRAVIS_BRANCH}-build"
# skip_cleanup: true
# on:
# branch: integration
# php: 5.6