.travis.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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. - CC_TEST_REPORTER_ID=650a2e46b8406e900242ba2459870ae868b695050c781806f67b98f4e2920a09
  10. before_script:
  11. - docker pull statonlab/tripal3
  12. - wget ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.30/ncbi-blast-2.2.30+-x64-linux.tar.gz
  13. - tar xzf ncbi-blast-2.2.30+-x64-linux.tar.gz
  14. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  15. - chmod +x ./cc-test-reporter
  16. - ./cc-test-reporter before-build --debug
  17. - GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
  18. - GIT_COMMIT_SHA=$TRAVIS_PULL_REQUEST_SHA
  19. after_script:
  20. - ./cc-test-reporter after-build clover.xml --debug -t clover -p /var/www/html/sites/all/modules/custom/tripal_blast --exit-code $TRAVIS_TEST_RESULT
  21. script:
  22. - docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_blast statonlab/tripal3
  23. - sleep 45 # We pause here so postgres and apache complete booting up
  24. #install blast
  25. - docker exec -it tripal bash -c "cp /modules/tripal_blast/ncbi-blast-2.2.30+/bin/* /usr/local/bin"
  26. - docker exec -it tripal drush pm-enable -y blast_ui
  27. - docker exec -it tripal yum install -y php-pecl-xdebug.x86_64
  28. - docker exec -it tripal bash -c "cd /modules/tripal_blast && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit --coverage-clover ./clover.xml"