.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829
  1. language: php
  2. services:
  3. - docker
  4. sudo: required
  5. branches:
  6. only:
  7. - 7.x-3.x
  8. - travis_integration
  9. before_script:
  10. - docker pull statonlab/drupal7
  11. script:
  12. - docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal statonlab/drupal7
  13. - sleep 10
  14. - docker exec -it tripal drush en -y tripal
  15. - docker exec -it tripal bash -c "cd /modules/tripal && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit"
  16. # - git clone https://github.com/tripal/docker-tripal-centos && cd docker-tripal-centos
  17. # - cd tripal-v2 && docker build -t tripal-v2 .
  18. # - docker run -it -d --name tripal-v2 -p 8080:80 tripal-v2 /bin/bash
  19. # - sleep 40 #need to sleep after booting docker
  20. # - docker exec -it tripal-v2 bash -c 'drush pm-disable tripal_core -y && cd /var/www/html/sites/all/modules/tripal/ && git checkout statonlab/travis_integration && drush pm-enable tripal -y && drush pm-enable tripal_chado -y && drush pm-enable tripal_views && drush cc all --yes && drush status'
  21. # - cd ../tripal-v3 && docker build -t tripal-v3 .
  22. # - docker run -it -d --name tripal-v3 -p 8082:80 tripal-v3 /bin/bash
  23. # - sleep 40
  24. # - docker exec -it tripal-v3 bash -c 'cd /var/www/html/sites/all/modules/tripal/ && git checkout statonlab/travis_integration && composer install && ./vendor/bin/phpunit'