-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: php
# Add php version so composer doesn't complain
php:
- 7.1
services:
- docker
env:
- DRUPAL_ROOT=/var/www/html IS_TRAVIS=TRUE CC_TEST_REPORTER_ID=ccd74f0cf6ac1bce09fe7d5aa01d8cc14d8cd92b6581cd683226aa6e5f5fd277
before_script:
- docker pull statonlab/tripal3
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build --debug
- GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH
- GIT_COMMIT_SHA=$TRAVIS_PULL_REQUEST_SHA
script:
- docker run -it -d --rm --name tripal -v "$(pwd)":/modules/tripal_hq statonlab/tripal3
- sleep 30 # We pause here so postgres and apache complete booting up
- docker exec -it tripal drush pm-enable -y tripal_hq tripal_hq_permissions tripal_hq_imports
- docker exec -it tripal yum install -y php-pecl-xdebug.x86_64
- docker exec -it tripal bash -c "cd /modules/tripal_hq && composer install && DRUPAL_ROOT=/var/www/html ./vendor/bin/phpunit --coverage-clover ./clover.xml"
after_script:
- ./cc-test-reporter after-build clover.xml --debug -t clover -p /var/www/html/sites/all/modules/custom/tripal_hq --exit-code $TRAVIS_TEST_RESULT