Commit f8179154 authored by Thomas Bouffard's avatar Thomas Bouffard Committed by Romain Bioteau
Browse files

chore(build): allow to build for community (#8)

* add Travis CI config file

* test code: remove dependency on oracle jdbc driver
parent 038c3747
language: java
jdk: openjdk8
os: linux
dist: xenial
cache:
directories:
# Maven dependencies and wrappers
- $HOME/.m2
before_cache:
# ensure that we do not keep bonitasoft artifacts across builds
- rm -rf $HOME/.m2/repository/org/bonitasoft
branches:
only:
- master
install: skip
script: ./mvnw verify
......@@ -58,12 +58,6 @@
<version>1.3.168</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>catalina</artifactId>
......
database.type_db=hsql
database.batch_script=CREATE TABLE film (title VARCHAR(255) PRIMARY KEY);CREATE TABLE showtime (time VARCHAR(8) PRIMARY KEY);CREATE TABLE theater (id INTEGER auto_increment PRIMARY KEY, film_id VARCHAR(255), showtime_id VARCHAR(8), free_seats INTEGER, seats VARCHAR(255) ); after_table_creation ALTER TABLE theater ADD CONSTRAINT fk_film FOREIGN KEY (film_id) REFERENCES film(title);ALTER TABLE theater ADD CONSTRAINT fk_showtime FOREIGN KEY (showtime_id) REFERENCES showtime(time);DROP TABLE theater;DROP TABLE film;DROP TABLE showtime;
hsql.JDBC_DRIVER=org.hsqldb.jdbcDriver
hsql.JDBC_URL=jdbc:hsqldb:mem:xdb
hsql.USERNAME=sa
hsql.PASSWORD=
hsql.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
hsql.auto_increment=GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)
hsql.drop_table=DROP TABLE table_name
hsql.insert=INSERT INTO table_name columns VALUES values
hsql.select=SELECT columns FROM table_name WHERE condition ORDER BY order
hsql.update=UPDATE table_name SET set_clause WHERE condition
hsql.delete=DELETE FROM table_name WHERE condition
oracle.JDBC_DRIVER=oracle.jdbc.driver.OracleDriver
oracle.JDBC_URL=jdbc:oracle
oracle.USERNAME=sa
oracle.PASSWORD=
oracle.auto_increment=NUMBER
oracle.create_table=CREATE TABLE table_name (id auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE);
oracle.after_table_creation=CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1; CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERT ON test REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT test_sequence.nextval INTO :NEW.ID FROM dual; END;/
oracle.drop_table=DROP TABLE table_name
oracle.insert=INSERT ALL into_values SELECT * FROM DUAL
oracle.select=SELECT columns FROM table_name WHERE condition ORDER BY order
oracle.update=UPDATE table_name SET set_clause WHERE condition
oracle.delete=DELETE FROM table_name WHERE condition
h2.JDBC_DRIVER=org.h2.Driver
h2.JDBC_URL=jdbc:h2:file:${bonita.home}/server/platform/work/bonita6_journal;FILE_LOCK=NO;LOCK_MODE=0;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE
h2.USERNAME=sa
h2.PASSWORD=
h2.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
h2.auto_increment=AUTO_INCREMENT
h2.drop_table=DROP TABLE table_name
h2.insert=INSERT INTO table_name columns VALUES values
h2.select=SELECT columns FROM table_name WHERE condition ORDER BY order
h2.update=UPDATE table_name SET set_clause WHERE condition
h2.delete=DELETE FROM table_name WHERE condition
mysql.JDBC_DRIVER=com.mysql.jdbc.Driver
mysql.JDBC_URL=jdbc:mysql://localhost:3306/test
mysql.USERNAME=root
mysql.PASSWORD=
mysql.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
mysql.auto_increment=AUTO_INCREMENT
mysql.drop_table=DROP TABLE table_name
mysql.insert=INSERT INTO table_name columns VALUES values
mysql.select=SELECT columns FROM table_name WHERE condition ORDER BY order
mysql.update=UPDATE table_name SET set_clause WHERE condition
mysql.delete=DELETE FROM table_name WHERE condition
datasource.batch_script=CREATE TABLE film (title VARCHAR(255) PRIMARY KEY);CREATE TABLE showtime (time VARCHAR(8) PRIMARY KEY);CREATE TABLE theater (id INTEGER auto_increment PRIMARY KEY, film_id VARCHAR(255), showtime_id VARCHAR(8), free_seats INTEGER, seats VARCHAR(255) );ALTER TABLE theater ADD CONSTRAINT fk_film FOREIGN KEY (film_id) REFERENCES film(title);ALTER TABLE theater ADD CONSTRAINT fk_showtime FOREIGN KEY (showtime_id) REFERENCES showtime(time);DROP TABLE theater;DROP TABLE film;DROP TABLE showtime;
hsql.datasource.JDBC_URL=jdbc:hsqldb:mem:xdb
hsql.datasource.USERNAME=sa
hsql.datasource.PASSWORD=
hsql.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
hsql.datasource.auto_increment=GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)
hsql.datasource.drop_table=DROP TABLE table_name
hsql.datasource.insert=INSERT INTO table_name columns VALUES values
hsql.datasource.select=SELECT columns FROM table_name WHERE condition
hsql.datasource.selectWithoutCondition=SELECT columns FROM table_name
hsql.datasource.update=UPDATE table_name SET set_clause WHERE condition
hsql.datasource.delete=DELETE FROM table_name WHERE condition
oracle.datasource.SERVERNAME=localhost
oracle.datasource.PORT=3306
oracle.datasource.DATABASENAME=test
oracle.datasource.USERNAME=sa
oracle.datasource.PASSWORD=
oracle.datasource.auto_increment=NUMBER
oracle.datasource.create_table=CREATE TABLE table_name (id auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE);
oracle.datasource.after_table_creation=CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1; CREATE OR REPLACE TRIGGER test_trigger BEFORE INSERT ON test REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT test_sequence.nextval INTO :NEW.ID FROM dual; END;/
oracle.datasource.drop_table=DROP TABLE table_name
oracle.datasource.insert=INSERT ALL into_values SELECT * FROM DUAL
oracle.datasource.select=SELECT columns FROM table_name WHERE condition
oracle.datasource.selectWithoutCondition=SELECT columns FROM table_name
oracle.datasource.update=UPDATE table_name SET set_clause WHERE condition
oracle.datasource.delete=DELETE FROM table_name WHERE condition
h2.datasource.JDBC_URL=jdbc:h2:file:${bonita.home}/server/platform/work/bonita6_journal;FILE_LOCK=NO;LOCK_MODE=0;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE
h2.datasource.USERNAME=sa
h2.datasource.PASSWORD=
h2.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
h2.datasource.auto_increment=AUTO_INCREMENT
h2.datasource.drop_table=DROP TABLE table_name
h2.datasource.insert=INSERT INTO table_name columns VALUES values
h2.datasource.select=SELECT columns FROM table_name WHERE condition
h2.datasource.selectWithoutCondition=SELECT columns FROM table_name
h2.datasource.update=UPDATE table_name SET set_clause WHERE condition
h2.datasource.delete=DELETE FROM table_name WHERE condition
mysql.datasource.SERVERNAME=localhost
mysql.datasource.PORT=3306
mysql.datasource.DATABASENAME=test
mysql.datasource.USERNAME=root
mysql.datasource.PASSWORD=
mysql.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
mysql.datasource.auto_increment=AUTO_INCREMENT
mysql.datasource.drop_table=DROP TABLE table_name
mysql.datasource.insert=INSERT INTO table_name columns VALUES values
mysql.datasource.select=SELECT columns FROM table_name WHERE condition
mysql.datasource.selectWithoutCondition=SELECT columns FROM table_name
mysql.datasource.update=UPDATE table_name SET set_clause WHERE condition
mysql.datasource.delete=DELETE FROM table_name WHERE condition
database.type_db=hsql
database.batch_script=CREATE TABLE film (title VARCHAR(255) PRIMARY KEY);CREATE TABLE showtime (time VARCHAR(8) PRIMARY KEY);CREATE TABLE theater (id INTEGER auto_increment PRIMARY KEY, film_id VARCHAR(255), showtime_id VARCHAR(8), free_seats INTEGER, seats VARCHAR(255) ); after_table_creation ALTER TABLE theater ADD CONSTRAINT fk_film FOREIGN KEY (film_id) REFERENCES film(title);ALTER TABLE theater ADD CONSTRAINT fk_showtime FOREIGN KEY (showtime_id) REFERENCES showtime(time);DROP TABLE theater;DROP TABLE film;DROP TABLE showtime;
hsql.JDBC_DRIVER=org.hsqldb.jdbcDriver
hsql.JDBC_URL=jdbc:hsqldb:mem:xdb
hsql.USERNAME=sa
hsql.PASSWORD=
hsql.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
hsql.auto_increment=GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)
hsql.drop_table=DROP TABLE table_name
hsql.insert=INSERT INTO table_name columns VALUES values
hsql.select=SELECT columns FROM table_name WHERE condition ORDER BY order
hsql.update=UPDATE table_name SET set_clause WHERE condition
hsql.delete=DELETE FROM table_name WHERE condition
h2.JDBC_DRIVER=org.h2.Driver
h2.JDBC_URL=jdbc:h2:file:${bonita.home}/server/platform/work/bonita6_journal;FILE_LOCK=NO;LOCK_MODE=0;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE
h2.USERNAME=sa
h2.PASSWORD=
h2.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
h2.auto_increment=AUTO_INCREMENT
h2.drop_table=DROP TABLE table_name
h2.insert=INSERT INTO table_name columns VALUES values
h2.select=SELECT columns FROM table_name WHERE condition ORDER BY order
h2.update=UPDATE table_name SET set_clause WHERE condition
h2.delete=DELETE FROM table_name WHERE condition
mysql.JDBC_DRIVER=com.mysql.jdbc.Driver
mysql.JDBC_URL=jdbc:mysql://localhost:3306/test
mysql.USERNAME=root
mysql.PASSWORD=
mysql.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
mysql.auto_increment=AUTO_INCREMENT
mysql.drop_table=DROP TABLE table_name
mysql.insert=INSERT INTO table_name columns VALUES values
mysql.select=SELECT columns FROM table_name WHERE condition ORDER BY order
mysql.update=UPDATE table_name SET set_clause WHERE condition
mysql.delete=DELETE FROM table_name WHERE condition
datasource.batch_script=CREATE TABLE film (title VARCHAR(255) PRIMARY KEY);CREATE TABLE showtime (time VARCHAR(8) PRIMARY KEY);CREATE TABLE theater (id INTEGER auto_increment PRIMARY KEY, film_id VARCHAR(255), showtime_id VARCHAR(8), free_seats INTEGER, seats VARCHAR(255) );ALTER TABLE theater ADD CONSTRAINT fk_film FOREIGN KEY (film_id) REFERENCES film(title);ALTER TABLE theater ADD CONSTRAINT fk_showtime FOREIGN KEY (showtime_id) REFERENCES showtime(time);DROP TABLE theater;DROP TABLE film;DROP TABLE showtime;
hsql.datasource.JDBC_URL=jdbc:hsqldb:mem:xdb
hsql.datasource.USERNAME=sa
hsql.datasource.PASSWORD=
hsql.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
hsql.datasource.auto_increment=GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1)
hsql.datasource.drop_table=DROP TABLE table_name
hsql.datasource.insert=INSERT INTO table_name columns VALUES values
hsql.datasource.select=SELECT columns FROM table_name WHERE condition
hsql.datasource.selectWithoutCondition=SELECT columns FROM table_name
hsql.datasource.update=UPDATE table_name SET set_clause WHERE condition
hsql.datasource.delete=DELETE FROM table_name WHERE condition
h2.datasource.JDBC_URL=jdbc:h2:file:${bonita.home}/server/platform/work/bonita6_journal;FILE_LOCK=NO;LOCK_MODE=0;MVCC=TRUE;DB_CLOSE_ON_EXIT=TRUE
h2.datasource.USERNAME=sa
h2.datasource.PASSWORD=
h2.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
h2.datasource.auto_increment=AUTO_INCREMENT
h2.datasource.drop_table=DROP TABLE table_name
h2.datasource.insert=INSERT INTO table_name columns VALUES values
h2.datasource.select=SELECT columns FROM table_name WHERE condition
h2.datasource.selectWithoutCondition=SELECT columns FROM table_name
h2.datasource.update=UPDATE table_name SET set_clause WHERE condition
h2.datasource.delete=DELETE FROM table_name WHERE condition
mysql.datasource.SERVERNAME=localhost
mysql.datasource.PORT=3306
mysql.datasource.DATABASENAME=test
mysql.datasource.USERNAME=root
mysql.datasource.PASSWORD=
mysql.datasource.create_table=CREATE TABLE table_name (id INT auto_increment PRIMARY KEY, firstname VARCHAR(25), lastname VARCHAR(25), age INT, average DOUBLE)
mysql.datasource.auto_increment=AUTO_INCREMENT
mysql.datasource.drop_table=DROP TABLE table_name
mysql.datasource.insert=INSERT INTO table_name columns VALUES values
mysql.datasource.select=SELECT columns FROM table_name WHERE condition
mysql.datasource.selectWithoutCondition=SELECT columns FROM table_name
mysql.datasource.update=UPDATE table_name SET set_clause WHERE condition
mysql.datasource.delete=DELETE FROM table_name WHERE condition
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment