diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37538f1..24bb214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ env: COBOL4J_LIB_DIR: /usr/lib/opensourcecobol4j COBOL4J_LIBCOBJ_JAR_PATH: /usr/lib/opensourcecobol4j/libcobj.jar OCESQL4J_LIB_DIR: /usr/lib/Open-COBOL-ESQL-4j - OCESQL4J_POSTGRESQL_JDBC_PATH: /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar OCESQL4J_OCESQL4J_JAR_PATH: /usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar - CLASSPATH: ":/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/Open-COBOL-ESQL-4j/postgresql.jar:/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar" + CLASSPATH: ":/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar" + jobs: Open-COBOL-ESQL-4j-tests: @@ -90,12 +90,6 @@ jobs: # Checkout - name: Checkout Open-COBOL-ESQL-4j uses: actions/checkout@v3 - - # Install JDBC - - name: Install JDBC - run: | - mkdir -p $COBOL4J_LIB_DIR $OCESQL4J_LIB_DIR - curl -L -o $OCESQL4J_POSTGRESQL_JDBC_PATH https://jdbc.postgresql.org/download/postgresql-42.2.24.jre6.jar # Checkout opensource COBOL 4J - name: Checkout opensourcecobol 4J @@ -115,7 +109,6 @@ jobs: # Build and Install Open COBOL ESQL 4J - name: Install Open COBOL ESQL 4J run: | - cp $OCESQL4J_POSTGRESQL_JDBC_PATH dblibj/lib cp $COBOL4J_LIBCOBJ_JAR_PATH dblibj/lib sh configure --prefix=/usr/ make diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ca8e4f0..9cecc51 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,4 +1,4 @@ -name: Make a coverage report +name: Coverage on: push: @@ -10,9 +10,8 @@ env: COBOL4J_LIB_DIR: /usr/lib/opensourcecobol4j COBOL4J_LIBCOBJ_JAR_PATH: /usr/lib/opensourcecobol4j/libcobj.jar OCESQL4J_LIB_DIR: /usr/lib/Open-COBOL-ESQL-4j - OCESQL4J_POSTGRESQL_JDBC_PATH: /usr/lib/Open-COBOL-ESQL-4j/postgresql.jar OCESQL4J_OCESQL4J_JAR_PATH: /usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar - CLASSPATH: ":/usr/lib/opensourcecobol4j/sqlite.jar:/usr/lib/opensourcecobol4j/libcobj.jar:/usr/lib/Open-COBOL-ESQL-4j/postgresql.jar:/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar" + CLASSPATH: ":/usr/lib/Open-COBOL-ESQL-4j/ocesql4j.jar" jobs: make-coverage-report: @@ -58,12 +57,6 @@ jobs: # Checkout - name: Checkout Open-COBOL-ESQL-4j uses: actions/checkout@v3 - - # Install JDBC - - name: Install JDBC - run: | - sudo mkdir -p $COBOL4J_LIB_DIR $OCESQL4J_LIB_DIR - sudo curl -L -o $OCESQL4J_POSTGRESQL_JDBC_PATH https://jdbc.postgresql.org/download/postgresql-42.2.24.jre6.jar # Checkout opensource COBOL 4J - name: Checkout opensourcecobol 4J @@ -83,7 +76,6 @@ jobs: # Build and Install Open COBOL ESQL 4J - name: Install Open COBOL ESQL 4J run: | - cp $OCESQL4J_POSTGRESQL_JDBC_PATH dblibj/lib cp $COBOL4J_LIBCOBJ_JAR_PATH dblibj/lib sh configure CFLAGS='-fprofile-arcs -ftest-coverage' --prefix=/usr/ make diff --git a/dblibj/Makefile.am b/dblibj/Makefile.am index 74b7d2c..709efb0 100644 --- a/dblibj/Makefile.am +++ b/dblibj/Makefile.am @@ -26,8 +26,7 @@ SETTING_FILES = \ scalastyle-config.xml JAR_DEPENDENCIES = \ - lib/libcobj.jar \ - lib/postgresql.jar + lib/libcobj.jar TARGET_JAR = target/scala-2.13/ocesql4j.jar diff --git a/dblibj/Makefile.in b/dblibj/Makefile.in index 686cc22..aa9bf76 100644 --- a/dblibj/Makefile.in +++ b/dblibj/Makefile.in @@ -277,8 +277,7 @@ SETTING_FILES = \ scalastyle-config.xml JAR_DEPENDENCIES = \ - lib/libcobj.jar \ - lib/postgresql.jar + lib/libcobj.jar TARGET_JAR = target/scala-2.13/ocesql4j.jar all: all-am diff --git a/dblibj/build.sbt b/dblibj/build.sbt index 2743bb3..6572dab 100755 --- a/dblibj/build.sbt +++ b/dblibj/build.sbt @@ -4,12 +4,9 @@ version := "0.1" scalaVersion := "2.13.6" -val scalaTest = "org.scalatest" %% "scalatest" % "3.0.8" % Test - -unmanagedJars in Compile += file("lib/postgresql-42.2.24.jre6.jar") - libraryDependencies ++= Seq( - scalaTest + "org.scalatest" %% "scalatest" % "3.0.8" % Test, + "org.postgresql" % "postgresql" % "42.2.5" ) assemblyJarName := "ocesql4j.jar"