You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/08/22 19:44:06 UTC

[GitHub] [netbeans] matthiasblaesing commented on a change in pull request #1450: [TRAVIS] Run tests with mysql database

matthiasblaesing commented on a change in pull request #1450: [TRAVIS] Run tests with mysql database
URL: https://github.com/apache/netbeans/pull/1450#discussion_r316853986
 
 

 ##########
 File path: .travis.yml
 ##########
 @@ -179,3 +178,20 @@ matrix:
              ide/xml.xdm
              ide/xsl"
           jdk: openjdk8
+
+        - name: "Tests with mysql database"
+          jdk: openjdk8
+          services:
+            - mysql
+          env:
+            - OPTS="-quiet -Dcluster.config=minimal -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false"
+            - OPTS_TEST="-Dtest-unit-sys-prop.ignore.random.failures=true -Dvanilla.javac.exists=true -Dtest-unit-sys-prop.mysql.user=root -Dtest-unit-sys-prop.mysql.password=password"
+          before_script:
+            - echo "ALTER USER root@'localhost' IDENTIFIED BY 'password';\nFLUSH PRIVILEGES;\n" | mysql -u root
+            - wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.23/mysql-connector-java-5.1.23.jar -O $HOME/mysql-connector-java-5.1.23.jar
+            - wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.17/mysql-connector-java-8.0.17.jar -O $HOME/mysql-connector-java-8.0.17.jar
 
 Review comment:
   Please use the netbeans mechanism for downloading external dependencies (derby for example is loaded by it). While the most common case for the external dependencies mechanism is download for redistribution, it can also handle downloads just for compile time. In ide/derby is a sample.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists