Skip to content

Apache DataFusion SQL Query Engine

ARROW-2344: [Go] Run Go unit tests in Travis CI

Sebastien Binet25fbd8f35a9f
diff --git a/.travis.yml b/.travis.yml
index b172dffc7c..e0014b4d0f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -217,6 +217,16 @@ matrix:
- mkdir -p target/kcov
- RUST_BACKTRACE=1 cargo coverage --verbose
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
+ # Go
+ - language: go
+ os: linux
+ go:
+ - 1.10.x
+ script:
+ - if [ $ARROW_CI_GO_AFFECTED != "1" ]; then exit; fi
+ - go get -d -t -v ./go/arrow/...
+ - go install -v ./go/arrow/...
+ - go test -v ./go/arrow/...
after_failure:
- COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)
diff --git a/ci/detect-changes.py b/ci/detect-changes.py
index b2b87204a2..9860e3e24c 100644
--- a/ci/detect-changes.py
+++ b/ci/detect-changes.py
@@ -26,7 +26,7 @@ import subprocess
perr = functools.partial(print, file=sys.stderr)
-LANGUAGE_TOPICS = ['c_glib', 'cpp', 'java', 'js', 'python', 'ruby', 'rust']
+LANGUAGE_TOPICS = ['c_glib', 'cpp', 'go', 'java', 'js', 'python', 'ruby', 'rust']
ALL_TOPICS = LANGUAGE_TOPICS + ['integration', 'site']
@@ -144,7 +144,7 @@ def get_affected_topics(affected_files):
elif p in ('c_glib'):
affected[p] = True
affected['ruby'] = True
- elif p in ('integration', 'python', 'site', 'ruby', 'rust'):
+ elif p in ('go', 'integration', 'python', 'ruby', 'rust', 'site'):
affected[p] = True
return affected