forked from JohnSnowLabs/spark-nlp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
env:
- DOCKER_SPARK_NLP_SCALA="${DOCKER_USERNAME}/spark-nlp-scala-${TRAVIS_BUILD_ID}" JAVA_OPTS="-XX:+UseG1GC"
sudo: required
services:
- docker
cache:
directories:
- $HOME/.spark_nlp.dep.cache
jobs:
include:
- stage: build
install: skip
script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t "$DOCKER_SPARK_NLP_SCALA" -f .ci/Dockerfile .
- docker push "$DOCKER_SPARK_NLP_SCALA"
- stage: scala
install: skip
language: scala
script: docker run "$DOCKER_SPARK_NLP_SCALA" sbt -mem 8192 test
- stage: python
install: skip
language: python
python: "2.7"
script:
- docker build --build-arg from="$DOCKER_SPARK_NLP_SCALA" -t spark-nlp-python-2 -f .ci/DockerfilePy2 .
- docker run spark-nlp-python-2 python2 run-tests.py
- language: python
python: "3.6"
script:
- docker build --build-arg from="$DOCKER_SPARK_NLP_SCALA" -t spark-nlp-python-3 -f .ci/DockerfilePy3 .
- docker run spark-nlp-python-3 python3 run-tests.py