.travis.yml 807 B

1234567891011121314151617181920212223
  1. language: php
  2. # Add php version so composer doesn't complain
  3. php:
  4. - 7.1
  5. services:
  6. - docker
  7. env:
  8. - DRUPAL_ROOT=/var/www/html
  9. before_script:
  10. - docker pull statonlab/tripal3
  11. - wget ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.30/ncbi-blast-2.2.30+-x64-linux.tar.gz
  12. - tar xzf ncbi-blast-2.2.30+-x64-linux.tar.gz
  13. script:
  14. - docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_blast statonlab/tripal3
  15. - sleep 30 # We pause here so postgres and apache complete booting up
  16. #install blast
  17. - docker exec -it tripal bash -c "cp /modules/tripal_blast/ncbi-blast-2.2.30+/bin/* /usr/local/bin"
  18. - docker exec -it tripal drush pm-enable -y blast_ui
  19. - docker exec -it tripal bash -c "cd /modules/tripal_blast && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit"