hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HIVE-10293) enabling travis-ci build?
Date Mon, 11 Apr 2016 18:13:25 GMT

    [ https://issues.apache.org/jira/browse/HIVE-10293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235642#comment-15235642
] 

Sergio Peña commented on HIVE-10293:
------------------------------------

Great, this is very useful for Git and for people using Pull Requests

For running tests, I worked on similar issue before, and wrote a script that executes just
a partial set of unit-tests (no q-tests). The build + unit-test time takes ~34 min. You can
tweak it if you need. Here's the script I used to do that in case you want to use it:

{code}
# Add any test to be excluded in alphabetical order to keep readability, starting with files,
and
# then directories.
declare -a EXCLUDE_TESTS=(
  ".*org/apache/hadoop/hive/ql/exec/.*"
  ".*org/apache/hadoop/hive/ql/parse/.*"
  ".*org/apache/hive/hcatalog/mapreduce/.*"
  ".*org/apache/hive/hcatalog/pig/.*"
)

function get_excluded_tests() {
  local IFS="|"
  echo -n "${EXCLUDE_TESTS[*]}"
}

function get_regex_excluded_tests() {
  echo -n "%regex[`get_excluded_tests`]"
}

regex_tests=`get_regex_excluded_tests`
mvn clean install -Phadoop-2 -Dmaven.repo.local="$MVN_REPO_LOCAL" -Dtest.excludes.additional="$regex_tests"
{code}


> enabling travis-ci build?
> -------------------------
>
>                 Key: HIVE-10293
>                 URL: https://issues.apache.org/jira/browse/HIVE-10293
>             Project: Hive
>          Issue Type: Improvement
>          Components: Build Infrastructure
>            Reporter: Gabor Liptak
>            Assignee: Gabor Liptak
>            Priority: Minor
>         Attachments: HIVE-10293.1.patch
>
>
> I would like to contribute a .travis.yml for Hive.
> In particular, this would allow contributors working through Github, to validate their
own commits on their own branches.
> Please comment.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message