diff --git a/.travis.yml b/.travis.yml index 0cc8c17..3291168 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,12 +3,18 @@ sudo: false cache: directories: - $HOME/.m2 - env: - JDK=oraclejdk8 dist: trusty before_script: - jdk_switcher use $JDK -script: - - mvn clean verify --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true +install: mvn clean verify -Dgpg.skip + +# TODO(weiguo) not tested yet +deploy: + provider: script + script: "mvn --settings .travis/settings.xml deploy -P gpg" + skip_cleanup: true + on: + tags: true diff --git a/.travis/settings.xml b/.travis/settings.xml new file mode 100644 index 0000000..9da90d3 --- /dev/null +++ b/.travis/settings.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + sonatype_snapshots + ${env.SONATYPE_USR} + ${env.SONATYPE_PSWD} + + + sonatype_releases + ${env.SONATYPE_USR} + ${env.SONATYPE_PSWD} + + + + + + + gpg + + gpg + ${env.GPG_KEYNAME} + ${env.GPG_PSWD} + + + + + + gpg + + diff --git a/pom.xml b/pom.xml index b1ed348..be0c3c5 100644 --- a/pom.xml +++ b/pom.xml @@ -7,8 +7,9 @@ org.sqlflow jsqlflow jar - 1.0-SNAPSHOT + 0.0.1 jsqlflow + SQLFlow client https://github.com/sql-machine-learning/jsqlflow @@ -19,6 +20,7 @@ 1.8 1.8 + io.grpc @@ -69,7 +71,21 @@ 1.6.2 + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + org.xolstice.maven.plugins protobuf-maven-plugin @@ -90,6 +106,7 @@ + org.apache.maven.plugins maven-enforcer-plugin @@ -108,6 +125,81 @@ + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + sonatype_releases + https://oss.sonatype.org/ + false + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.0 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + gpg + verify + + sign + + + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + https://github.com/sql-machine-learning/jsqlflow/tree/develop + + + + + weiguoz + myxjtu@gmail.com + http://sqlflow.org/ + +8 + + + + + + sonatype_releases + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2 + + + sonatype_snapshots + Nexus Snapshot Repository + https://oss.sonatype.org/content/repositories/snapshots + + \ No newline at end of file diff --git a/src/main/java/org/sqlflow/client/SQLFlow.java b/src/main/java/org/sqlflow/client/SQLFlow.java index 322275b..42e8150 100644 --- a/src/main/java/org/sqlflow/client/SQLFlow.java +++ b/src/main/java/org/sqlflow/client/SQLFlow.java @@ -32,12 +32,7 @@ public interface SQLFlow { * Submit a task to SQLFlow server. This method return immediately. * * @param session: specify dbConnStr(datasource), user Id ... - *

datasource == maxcomputer - * maxcompute://{accesskey_id}:{accesskey_secret}@{endpoint}?curr_project={curr_project}&scheme={scheme} - *

datasource == mysql - * mysql://{username}:{password}@tcp({address})/{dbname}[?param1=value1&...¶mN=valueN] - *

datasource == hive - * hive://user:password@ip:port/dbname[?auth=&session.=...&session=valueN] + * mysql://root:root@tcp(localhost)/iris * @param sql: sql program. *

Example: "SELECT * FROM iris.test; SELECT * FROM iris.iris TO TRAIN DNNClassifier * COLUMN..." *