Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: Blast Database Node #35

Merged
merged 9 commits into from
Jun 6, 2018
Merged
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
# Ignore an internal CViTjs installation.
# Assumes it's been cloned in the js directory
js/*

## Ignore PHPUnit Test vendor scripts & environment info.
.env
vendor/

20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php

# Add php version so composer doesn't complain
php:
- 7.1

services:
- docker

env:
- DRUPAL_ROOT=/var/www/html

before_script:
- docker pull statonlab/tripal3

script:
- docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_blast statonlab/tripal3
- sleep 30 # We pause here so postgres and apache complete booting up
- docker exec -it tripal drush pm-enable -y blast_ui
- docker exec -it tripal bash -c "cd /modules/tripal_blast && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit"
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require-dev": {
"statonlab/tripal-test-suite": "^1.1"
}
}
Loading