Browse Source

Running database install in travis

Some of the setup.py#start() functions depend on being able to
connect to mysql, and potentially on being able to verify their
data, so we need to run the installation
Hamilton Turner 11 years ago
parent
commit
7b5fe8ea3b
1 changed files with 18 additions and 10 deletions
  1. 18 10
      .travis.yml

+ 18 - 10
.travis.yml

@@ -7,28 +7,36 @@ branches:
     - docker
 env:
   global:
-    - DBHOST=localhost
+    - TFB_SERVER_HOST=127.0.0.1
+    - TFB_CLIENT_HOST=127.0.0.1
+    - TFB_DATABASE_HOST=127.0.0.1
+    - TFB_CLIENT_USER=travis
+    - TFB_DATABASE_USER=travis
+    - TFB_CLIENT_IDENTITY_FILE=/home/travis/.ssh/id_rsa
+    - TFB_DATABASE_IDENTITY_FILE=/home/travis/.ssh/id_rsa
   matrix:
     - TEST=go
     - TEST=nodejs
 before_install:
-  - echo hello world 
   - sudo apt-get update
   - sudo apt-get install openssh-server
-  # Run as travis use (who has passwordless sudo)
+    # Run as travis use (who has passwordless sudo)
   - ssh-keygen -f /home/travis/.ssh/id_rsa -N '' -t rsa  
   - cat /home/travis/.ssh/id_rsa.pub > /home/travis/.ssh/authorized_keys
   - chmod 600 /home/travis/.ssh/authorized_keys
 install:
   - pip install docker-py
   - pip install coveralls
-before_script:
-  - echo about to script
+    # Install database software
+  - coverage run --parallel-mode --omit installs,results toolset/run-tests.py --install database --log DEBUG --test ''
+    # Install server prerequisites
+  - coverage run --parallel-mode --omit installs,results toolset/run-tests.py --install server --log DEBUG --test ''
+    # Install test code  
+  - coverage run --parallel-mode --omit installs,results toolset/run-tests.py --install server --log DEBUG --test $TEST 
 script: 
-  - coverage run --omit installs,results toolset/run-tests.py -s localhost -c localhost -d localhost -u travis -i /home/travis/.ssh/id_rsa --database-user travis --database-host localhost --database-identity-file /home/travis/.ssh/id_rsa --mode verify --log DEBUG --install server --type json --test $TEST
+    # Run test verification 
+  - coverage run --parallel-mode --omit installs,results toolset/run-tests.py --mode verify --log DEBUG --type json --test $TEST
 after_success:
+  - coverage combine
+  - coverage report
   - coveralls
-after_failure:
-  - echo Nien
-after_script:
-  - echo finishing up