Browse Source

Move postgres stuff before installation in case install.sh files need it

Hamilton Turner 11 years ago
parent
commit
2311723bad
1 changed files with 6 additions and 7 deletions
  1. 6 7
      .travis.yml

+ 6 - 7
.travis.yml

@@ -168,19 +168,18 @@ before_install:
   # configuration and will break travis's mysql setup
   - mysql -uroot < config/create.sql
   
+  # Setup Postgres
+  - psql --version
+  - sudo useradd benchmarkdbuser -p benchmarkdbpass
+  - sudo -u postgres psql template1 < config/create-postgres-database.sql
+  - sudo -u benchmarkdbuser psql hello_world < config/create-postgres.sql
+  # TODO May have to change ssl to false in the config file...
 addons:
   postgresql: "9.3" 
 
 install:
   # Install server prerequisites
   - time ./toolset/run-ci.py prereq $TESTDIR
-
-before_script:
-  - psql --version
-  - sudo useradd benchmarkdbuser -p benchmarkdbpass
-  - sudo -u postgres psql template1 < config/create-postgres-database.sql
-  - sudo -u benchmarkdbuser psql hello_world < config/create-postgres.sql
-  # TODO May have to change ssl to false in the config file...
    
 script: 
   # Run test verification