-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (28 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: php
php:
- 5.3
mysql:
database: drupal
username: root
encoding: utf8
before_script:
- "mysql -e 'create database drupal;'"
- pear channel-discover pear.drush.org
- pear install drush/drush
- pear install PHP_CodeSniffer
- wget http://ftp.drupal.org/files/projects/drupalcs-7.x-1.0-beta1.tar.gz -O ../drupalcs.tar.gz
- tar -xvzf ../drupalcs.tar.gz -C ../
- pwd
- phpenv rehash
- drush make fjvu_dk.build ../fjvu.dk
- cd ../fjvu.dk
- sudo chmod -R 777 sites/all/modules
- drush si fjvu_dk --db-url=mysql://root:@127.0.0.1/drupal --account-name=admin --account-pass=VIH@2012 [email protected] --site-name="fjvu.dk" --yes
- drush cc all --yes
- cd ../fjvu-deploy
script:
- test -d ../fjvu.dk/profiles/fjvu_dk
- test -d ../fjvu.dk/profiles/fjvu_dk/modules/contrib
- test -d ../fjvu.dk/profiles/fjvu_dk/modules/fjvu
- test -d ../fjvu.dk/profiles/fjvu_dk/themes
- phpcs . --standard=../drupalcs/Drupal/ruleset.xml --extensions=php,module,inc,install,test,profile,theme