Cross validate systems both ways in CI
@@ -29,7 +29,7 @@ jobs:
name: Build project
command: ./build.sh
- run:
- name: Load Cypher/Neo4j database
+ name: Load Cypher/Neo4j database (1st time)
command: |
cd cypher
. scripts/environment-variables-default.sh
@@ -40,6 +40,7 @@ jobs:
command: |
cd cypher
driver/create-validation-parameters.sh
+ mv validation_params.csv validation_params_cypher.csv
cd ..
- run:
name: Load PostgreSQL database (1st time)
@@ -51,10 +52,26 @@ jobs:
scripts/load.sh
cd ..
- run:
- name: Create validation parameters with PostgreSQL project
+ name: Create validation parameters with the PostgreSQL project
command: |
cd postgres
driver/create-validation-parameters.sh
+ mv validation_params.csv validation_params_postgres.csv
+ cd ..
+ - run:
+ name: Load Cypher/Neo4j database (2nd time)
+ command: |
+ cd cypher
+ . scripts/environment-variables-default.sh
+ scripts/load-in-one-step.sh
+ cd ..
+ - run:
+ name: Cross-validate the Neo4j/Cypher project based on the results from Postgres
+ command: |
+ mv postgres/validation_params_postgres.csv cypher/validation_params.csv
+ cd cypher
+ driver/validate.sh | tee validation-log.txt
+ grep 'Validation Result: PASS' validation-log.txt
cd ..
- run:
name: Load PostgreSQL database (2nd time)
@@ -66,9 +83,9 @@ jobs:
scripts/load.sh
cd ..
- run:
- name: Cross-validate Postgres project
+ name: Cross-validate the Postgres project based on the results from Neo4j/Cypher
command: |
- cp cypher/validation_params.csv postgres/
+ mv cypher/validation_params_cypher.csv postgres/validation_params.csv
cd postgres
driver/validate.sh | tee validation-log.txt
grep 'Validation Result: PASS' validation-log.txt
