aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-04-06 15:27:27 -0700
committerBryan Newbold <bnewbold@archive.org>2018-04-06 15:27:27 -0700
commit401b09afb5665356a44291af5b42a3cd9836c0fb (patch)
treeb49057fe6343e9269889f4013da411fb7b8a11c9
parentb5b266dc45d64e94bb9d721643d06965b7872963 (diff)
downloadsandcrawler-401b09afb5665356a44291af5b42a3cd9836c0fb.tar.gz
sandcrawler-401b09afb5665356a44291af5b42a3cd9836c0fb.zip
try pig env again
-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