How to raise the database with tables in Travis CI? Base seems to be raised, but how to add tables?

.travis.yml :

 before_script: psql -c 'create database test;' -U postgres services: postgresql addons: 9.4" language: java sudo: false script: mvn clean verify 
  • The same way you created the database. In general, in a good way, you need to embed liquibase inside the application and call it at startup / - etki
  • Is it possible to learn more about how "How did you create a database"? - JVic
  • before_script: psql -c 'create table ( ... );' -U postgres before_script: psql -c 'create table ( ... );' -U postgres - etki
  • The command "psql -c 'CREATE TABLE public.contacts (id integer NOT NULL DEFAULT nextval (' contacts_id_seq ':: regclass), name character varying, CONSTRAINT contacts_pkey PRIMARY KEY (id))' -U postgres" failed and exited with 1 during. Alas does not work! - JVic
  • one
    it doesn’t "work", you didn’t screen them apostrophes - etki

0