https://github.com/sfu-cl-lab/FactorBase
Raw File
Tip revision: 2de8b902e5f7caf30f078941ce74097fcca5ade4 authored by rmar3a on 09 June 2021, 23:01:24 UTC
No materialized local counts tables.
Tip revision: 2de8b90
.travis.yml
language: java
dist: trusty
addons:
  mariadb: '10.3'
jdk:
  - oraclejdk8
before_script:
  - mysql -e "use mysql; update user set password=PASSWORD('123456') where User='root'; flush privileges;" -uroot
  - mysql -uroot -p123456 < travis-resources/unielwin_course.sql
  - mysql -uroot -p123456 < travis-resources/unielwin_prof.sql
  - mysql -uroot -p123456 < travis-resources/unielwin_RA.sql
  - mysql -uroot -p123456 < travis-resources/unielwin_registration.sql
  - mysql -uroot -p123456 < travis-resources/unielwin_student.sql
  - mysql -uroot -p123456 < travis-resources/tests-database.sql
script:
  - cd code
  - mvn install -DtestDBUserName=root -DtestDBPassword=123456
  - java -Dconfig=../travis-resources/config.cfg -jar factorbase/target/factorbase*SNAPSHOT.jar
  - ls -lh
  - tail dag_.txt
  # Compare the structure of the graphs in the BIF files.
  - python3 ../travis-resources/bifchecker.py --compare Bif_unielwin.xml ../travis-resources/expected-output/Bif_unielwin.xml
  # Check for any differences in the BIF files.
  - diff Bif_unielwin.xml ../travis-resources/expected-output/Bif_unielwin.xml
  - bash ../travis-resources/dbdump.sh -n unielwin -p 123456
  - diff mysql-extraction.txt ../travis-resources/expected-output/mysql-extraction.txt
  - java -Dconfig=../travis-resources/config.cfg -jar mlnexporter/target/mlnexporter*SNAPSHOT.jar > mln_jar.txt
  - tail mln_jar.txt

after_script:
  - mysql -e "show databases;" -uroot -p123456
  - mysql -e "use unielwin_BN; show tables;" -uroot -p123456
  - mysql -e "use unielwin_CT; show tables;" -uroot -p123456
back to top