forked from drupal-ukraine/ppdorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 loc) · 1.34 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
33
34
35
36
37
38
39
40
41
42
43
44
45
language: php
php:
- 5.6
services:
- mysql
env:
- DB=mysql
before_install:
# Make sure everything's up to date.
- sudo apt-get update -qq
- travis_retry composer selfupdate
install:
# Install Ansible.
- sudo pip install ansible
before_script:
#- echo "extension=pcntl.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
#- wget http://files.drush.org/drush.phar
#- chmod +x drush.phar
#- sudo mv drush.phar /usr/local/bin/drush
#- sudo drush init
#- drush init
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require drush/drush:dev-master
- phpenv rehash
- sudo ln -s /home/travis/.composer/vendor/bin/drush /usr/bin/drush
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS af_test;create database IF NOT EXISTS af_test;'; fi"
# Installing Drupal Console
- php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
- sudo mv drupal.phar /usr/local/bin/drupal
- sudo chmod +x /usr/local/bin/drupal
script:
- drush --version
- ls -la
- cd docroot
- ansible-playbook reinstall.yml -i 'localhost,' --connection=local --extra-vars="mysql_db=af_test mysql_user=root mysql_pass="
- drush status
#- drupal -vvv test:run --url http://default "\Drupal\advanced_forum\Tests\AdvancedForumControllerTest"