Browse Source

specify branches and build on this branch for now

Vlad Dracula 7 years ago
parent
commit
abe2e7ffd4
1 changed files with 7 additions and 2 deletions
  1. 7 2
      .travis.yml

+ 7 - 2
.travis.yml

@@ -5,14 +5,19 @@ services:
 
 sudo: required
 
+branches:
+  only:
+  - 7.x-3.x
+  - travis_integration
+
 
 script:
   - git clone https://github.com/tripal/docker-tripal-centos  && cd docker-tripal-centos
   - cd tripal-v2 && docker build -t tripal-v2 .
   - docker run -it -d --name tripal-v2 -p 8080:80 tripal-v2 /bin/bash
   - sleep 40  #need to sleep after booting docker
-  - docker exec -it tripal-v2 bash -c 'drush pm-disable tripal_core -y && cd /var/www/html/sites/all/modules/tripal/ && git checkout 7.x-3.x && drush pm-enable tripal -y && drush pm-enable tripal_chado -y && drush cc all --yes && drush status'
+  - docker exec -it tripal-v2 bash -c 'drush pm-disable tripal_core -y && cd /var/www/html/sites/all/modules/tripal/ && git checkout statonlab/travis_integration && drush pm-enable tripal -y && drush pm-enable tripal_chado -y && drush pm-enable tripal_views && drush cc all --yes && drush status'
   - cd ../tripal-v3 && docker build -t tripal-v3 .
   - docker run -it -d --name tripal-v3 -p 8082:80 tripal-v3 /bin/bash
   - sleep 40
-  - docker exec -it tripal-v3 bash -c 'cd /var/www/html/sites/all/modules/tripal/ &&composer install && ./vendor/bin/phpunit'
+  - docker exec -it tripal-v3 bash -c 'cd /var/www/html/sites/all/modules/tripal/ && git checkout statonlab/travis_integration  && composer install && ./vendor/bin/phpunit'