BIGTOP-2429. Add Solr to gradle smokes
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/275ba8fe Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/275ba8fe Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/275ba8fe Branch: refs/heads/BIGTOP-2253 Commit: 275ba8fe5f6d1140fbb898c021ec0a4b349931ea Parents: 699afb8 Author: Dasha Boudnik <[email protected]> Authored: Mon Jul 11 05:45:43 2016 +0000 Committer: Dasha Boudnik <[email protected]> Committed: Sun Jul 10 23:08:16 2016 -0700 ---------------------------------------------------------------------- bigtop-tests/smoke-tests/build.gradle | 2 ++ bigtop-tests/smoke-tests/solr/build.gradle | 42 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/275ba8fe/bigtop-tests/smoke-tests/build.gradle ---------------------------------------------------------------------- diff --git a/bigtop-tests/smoke-tests/build.gradle b/bigtop-tests/smoke-tests/build.gradle index 1a84d05..928f256 100644 --- a/bigtop-tests/smoke-tests/build.gradle +++ b/bigtop-tests/smoke-tests/build.gradle @@ -29,6 +29,8 @@ subprojects { ext.groovyVersion = '1.8.0' ext.hadoopVersion = '2.7.1' + ext.solrVersion = '4.6.0' + ext.slf4jVersion = '1.6.6' // itest needs be greater than or equal to = 1.0.0 ext.itestVersion = '1.0.0' // Might need to be able to read an input for alternate version? ext.BIGTOP_HOME = rootDir http://git-wip-us.apache.org/repos/asf/bigtop/blob/275ba8fe/bigtop-tests/smoke-tests/solr/build.gradle ---------------------------------------------------------------------- diff --git a/bigtop-tests/smoke-tests/solr/build.gradle b/bigtop-tests/smoke-tests/solr/build.gradle new file mode 100644 index 0000000..b1e07a8 --- /dev/null +++ b/bigtop-tests/smoke-tests/solr/build.gradle @@ -0,0 +1,42 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * <p/> + * http://www.apache.org/licenses/LICENSE-2.0 + * <p/> + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +def junitVersion = '4.11' +dependencies { + compile group: 'junit', name: 'junit', version: junitVersion, transitive: 'true' + compile group: 'org.apache.solr', name: 'solr-solrj', version: solrVersion, transitive: 'true' + compile group: 'org.slf4j', name: 'slf4j-simple', version: slf4jVersion, transitive: 'true' + if (System.env.HADOOP_CONF_DIR) testRuntime files(System.env.HADOOP_CONF_DIR) +} + +sourceSets { + test { + groovy { + srcDirs = [ + "${BIGTOP_HOME}/bigtop-tests/test-artifacts/solr" + ] + } + } +} + +test.doFirst { + checkEnv(["HADOOP_CONF_DIR"]) +} + +test { + include '**/Test*' +}
