Browse Source

This goes a bit deeper than I thought it did initially

pull/756/head
Danny Lamb 8 years ago
parent
commit
f8a63869f7
  1. 20
      .scripts/travis_setup.sh
  2. 4
      .travis.yml

20
.scripts/travis_setup.sh

@ -3,16 +3,16 @@ mysql -u root -e 'create database drupal;'
mysql -u root -e "GRANT ALL PRIVILEGES ON drupal.* To 'drupal'@'localhost' IDENTIFIED BY 'drupal';" mysql -u root -e "GRANT ALL PRIVILEGES ON drupal.* To 'drupal'@'localhost' IDENTIFIED BY 'drupal';"
# Java (Oracle) # Java (Oracle)
sudo apt-get install -y software-properties-common #sudo apt-get install -y software-properties-common
sudo apt-get install -y python-software-properties #sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:webupd8team/java #sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update #sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections #echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections #echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo apt-get install -y oracle-java8-installer #sudo apt-get install -y oracle-java8-installer
sudo update-java-alternatives -s java-8-oracle #sudo update-java-alternatives -s java-8-oracle
sudo apt-get install -y oracle-java8-set-default #sudo apt-get install -y oracle-java8-set-default
export JAVA_HOME=/usr/lib/jvm/java-8-oracle #export JAVA_HOME=/usr/lib/jvm/java-8-oracle
# phpcpd # phpcpd
#sudo apt-get install -y phpcpd #sudo apt-get install -y phpcpd

4
.travis.yml

@ -20,7 +20,7 @@ before_install:
- export ISLANDORA_DIR=$TRAVIS_BUILD_DIR - export ISLANDORA_DIR=$TRAVIS_BUILD_DIR
install: install:
# - $TRAVIS_BUILD_DIR/tests/scripts/travis_setup.sh - $TRAVIS_BUILD_DIR/tests/scripts/travis_setup.sh
- composer install - composer install
- php vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer - php vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer
@ -29,7 +29,7 @@ script:
- $ISLANDORA_DIR/.scripts/line_endings.sh . - $ISLANDORA_DIR/.scripts/line_endings.sh .
- php vendor/bin/phpcs --standard=Drupal **/*.module **/*.php --ignore=tests,vendor . - php vendor/bin/phpcs --standard=Drupal **/*.module **/*.php --ignore=tests,vendor .
- php vendor/bin/phpcpd --names *.module,*.inc,*.test,*.php --exclude=vendor . - php vendor/bin/phpcpd --names *.module,*.inc,*.test,*.php --exclude=vendor .
- php core/scripts/run-tests.sh islandora - php /var/www/html/drupal/core/scripts/run-tests.sh islandora
notifications: notifications:
irc: irc:

Loading…
Cancel
Save