aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--pig/README.md2
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