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/09/02 13:30:50 UTC

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

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

 ##########
 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:
   @matthiasblaesing I have some doubts about the netbeans download mechanism. 
   
   - Do I need to add a license.txt file and a notice.txt file for the Mysql driver?
   - Can I load the Mysql driver in the test classpath using the `project.properties` file like in this example?
   
   ```java
   test.unit.cp.extra=\
       ${nb_all}/db/external/derby-10.2.2.0.jar
   ```

----------------------------------------------------------------
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