From 314a11fefcac8713ca7b5d29af913b4cbcb87a7a Mon Sep 17 00:00:00 2001 From: Ke Zhu Date: Wed, 5 Feb 2020 12:17:17 -0500 Subject: [PATCH 1/2] Uses prestosql 329 --- .travis.yml | 4 ++-- Dockerfile | 4 ++-- test_config.yaml | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index eb5e392..bb0da2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ services: - docker install: -- curl -LO https://github.com/IBM/presto-db2/releases/download/325/presto-db2-325.zip -- unzip presto-db2-325.zip +- curl -LO https://github.com/IBM/presto-db2/releases/download/325/presto-db2-329.zip +- unzip presto-db2-329.zip before_script: curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 && diff --git a/Dockerfile b/Dockerfile index 0affae9..be89a13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM prestosql/presto:325 +FROM prestosql/presto:329 # Add Db2 connector -COPY --chown=presto:presto presto-db2-325 /usr/lib/presto/plugin/db2 +COPY --chown=presto:presto presto-db2-329 /usr/lib/presto/plugin/db2 diff --git a/test_config.yaml b/test_config.yaml index 7b95fba..2b063d3 100644 --- a/test_config.yaml +++ b/test_config.yaml @@ -8,6 +8,8 @@ fileExistenceTests: path: /usr/lib/presto/plugin/db2 uid: 1000 gid: 1000 +- name: presto-db2.jar + path: /usr/lib/presto/plugin/db2/presto-db2-329.jar metadataTest: env: - key: JAVA_HOME From 7b5ab594de9b7e574cb6bbfa386d12d1e4e88e7b Mon Sep 17 00:00:00 2001 From: Ke Zhu Date: Wed, 5 Feb 2020 13:55:23 -0500 Subject: [PATCH 2/2] Fixes CI --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb0da2b..d2c3948 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,13 @@ services: - docker +env: + global: + - PRESTOSQL_RELEASE=329 + install: -- curl -LO https://github.com/IBM/presto-db2/releases/download/325/presto-db2-329.zip -- unzip presto-db2-329.zip +- curl -LO https://github.com/IBM/presto-db2/releases/download/${PRESTOSQL_RELEASE}/presto-db2-${PRESTOSQL_RELEASE}.zip +- unzip presto-db2-${PRESTOSQL_RELEASE}.zip before_script: curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 &&