From 401b09afb5665356a44291af5b42a3cd9836c0fb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 6 Apr 2018 15:27:27 -0700 Subject: try pig env again --- .gitlab-ci.yml | 4 ++-- pig/README.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f5d682..14a08b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: python:3.6-stretch before_script: - apt update -qy - - apt install -y python3-dev python3-pip python3-wheel libjpeg-dev + - apt install -y python3-dev python3-pip python3-wheel libjpeg-dev openjdk-8-jre-headless - pip3 install pipenv - pipenv --version @@ -17,4 +17,4 @@ test_pig: - cd pig - ./fetch_deps.sh - pipenv install --dev --deploy - - pipenv run pytest + - JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") pipenv run pytest diff --git a/pig/README.md b/pig/README.md index 9e45333..7b5806b 100644 --- a/pig/README.md +++ b/pig/README.md @@ -10,6 +10,8 @@ by `fetch_deps.sh`) due to [dependency/jar issues][pig-bug] in local mode of ## Development and Testing +To run tests, you need Java installed and `JAVA_HOME` configured. + Fetch dependencies (pig): ./fetch_deps.sh -- cgit v1.2.3