mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
add the tests to run on my sql [execute tests on MySQL]
This commit is contained in:
15
.travis.yml
15
.travis.yml
@@ -64,13 +64,24 @@ jobs:
|
||||
- travis_retry travis_wait 35 mvn -B -q clean ${MAVEN_PHASE} -Dskip.integrationtests=false -f rm-benchmark/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
|
||||
- name: "Community Integrations Tests on MySQL"
|
||||
services: mysql
|
||||
stage: Tests
|
||||
if: branch IN (release\/V2.7.*, hotfix-2.7\/.*) OR commit_message =~ /\[execute tests on MySQL\]/
|
||||
before_install:
|
||||
- mysql -u root --password="" < scripts/my_sql_travis.sql
|
||||
script:
|
||||
- echo "Community Integrations Tests on MySQL"
|
||||
- travis_retry travis_wait 80 mvn -B -q clean install -Puse-mysql -DskipTests -Dskip.integrationtests=false -Dmy.db.name=alfresco -Dmy.db.port=3306 -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
|
||||
- name: "Enterprise Integrations Tests on MySQL"
|
||||
services: mysql
|
||||
stage: Tests
|
||||
if: branch IN (release\/V2.7.*, hotfix-2.7\/.*) OR commit_message =~ /\[execute tests on MySQL\]/
|
||||
before_install:
|
||||
- mysql -u root --password="" < scripts/my_sql_travis.sql
|
||||
install:
|
||||
- travis_retry travis_wait 60 mvn -B -q clean install -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -f rm-community/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
script:
|
||||
- echo "Enterprise Integrations Tests on MySQL"
|
||||
- travis_retry travis_wait 80 mvn -B -q clean install -Puse-mysql -DskipTests -Dskip.integrationtests=false -Dmy.db.name=alfresco -Dmy.db.port=3306 -f rm-enterprise/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
|
||||
|
||||
- name: "Community Rest API Tests"
|
||||
stage: Tests
|
||||
|
7
scripts/my_sql_travis.sql
Normal file
7
scripts/my_sql_travis.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
# Create alfresco
|
||||
CREATE USER 'alfresco' IDENTIFIED BY 'alfresco';
|
||||
GRANT ALL on alfresco.* to 'alfresco'@'%' identified by 'alfresco' with grant option;
|
||||
FLUSH HOSTS;
|
||||
FLUSH PRIVILEGES;
|
||||
# Create DB
|
||||
CREATE DATABASE IF NOT EXISTS `alfresco` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
|
Reference in New Issue
Block a user