Browse Source

add upgrade

Vlad Dracula 7 years ago
parent
commit
1c825f3545
5 changed files with 15 additions and 2 deletions
  1. 3 0
      .gitignore
  2. 4 2
      .travis.yml
  3. 3 0
      README.md
  4. 5 0
      composer.json
  5. 0 0
      phpunit.xml

+ 3 - 0
.gitignore

@@ -1 +1,4 @@
 .DS_Store
+composer.lock
+vendor/*
+test/.env

+ 4 - 2
.travis.yml

@@ -8,6 +8,8 @@ sudo: required
 
 script:
   - git clone https://github.com/tripal/docker-tripal-centos  && cd docker-tripal-centos
-  - cd tripal-v2 && docker build .  #Aftewards run the container and do stuff with it  - docker run -it -p 8080:80 mingchen0919/docker-tripal-v2 /bin/bash
+  - cd tripal-v2 && docker build .
+  - docker run -it -d -p 8080:80 tripal-v2 /bin/bash
+  - 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'
   - cd ../tripal-v3 && docker build .
-  - ls #we'll run tests at this step  # 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/ &&composer install && ./vendor/bin/phpunit'

+ 3 - 0
README.md

@@ -1,3 +1,6 @@
+[![Build Status](https://travis-ci.org/statonlab/tripal.svg?branch=7.x-3.x)](https://travis-ci.org/statonlab/tripal)
+
+
 ![alt tag](https://raw.githubusercontent.com/tripal/tripal/7.x-3.x/tripal/theme/images/tripal_logo.png)
 
 Tripal is a toolkit for construction of online biological (genetics, genomics,

+ 5 - 0
composer.json

@@ -0,0 +1,5 @@
+{
+  "require-dev": {
+    "phpunit/phpunit": "^5"
+  }
+}

+ 0 - 0
test/phpunit.xml → phpunit.xml