.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728
  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. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  14. - chmod +x ./cc-test-reporter
  15. - ./cc-test-reporter before-build
  16. after_script:
  17. - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
  18. script:
  19. - docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_blast statonlab/tripal3
  20. - sleep 30 # We pause here so postgres and apache complete booting up
  21. #install blast
  22. - docker exec -it tripal bash -c "cp /modules/tripal_blast/ncbi-blast-2.2.30+/bin/* /usr/local/bin"
  23. - docker exec -it tripal drush pm-enable -y blast_ui
  24. - docker exec -it tripal bash -c "cd /modules/tripal_blast && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit"