You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/12/05 12:27:57 UTC

[servicecomb-toolkit] branch master updated (cb25819 -> 1491f54)

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git.


    from cb25819  [SCB-1645] fix url issue
     new 3335e40  [SCB-1639] the configuration about deploying jars  to snapshot repository
     new 1491f54  [SCB-1639] remove unused configuration

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../logback-test.xml => .travis.settings.xml       | 15 +++--
 .travis.yml                                        | 10 ++--
 .../deploy.sh                                      | 70 +++++++++-------------
 3 files changed, 44 insertions(+), 51 deletions(-)
 copy oas-validator/oas-validator-compatibility-spring/src/test/resources/logback-test.xml => .travis.settings.xml (65%)
 copy oas-validator/oas-validator-style/src/test/resources/org/apache/servicecomb/toolkit/oasv/style/validator/schema/petstore-schema-title-nested.yaml => scripts/deploy.sh (67%)


[servicecomb-toolkit] 02/02: [SCB-1639] remove unused configuration

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 1491f544c6b3c5720b6be1e8cbce322208d18979
Author: MabinGo <bi...@huawei.com>
AuthorDate: Wed Dec 4 22:55:02 2019 +0800

    [SCB-1639] remove unused configuration
    
    Signed-off-by: MabinGo <bi...@huawei.com>
---
 .travis.settings.xml | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/.travis.settings.xml b/.travis.settings.xml
index 6c2fd59..f59a518 100644
--- a/.travis.settings.xml
+++ b/.travis.settings.xml
@@ -23,10 +23,5 @@
       <username>${env.SONATYPE_USERNAME}</username>
       <password>${env.SONATYPE_PASSWORD}</password>
     </server>
-    <server>
-      <id>apache.releases.https</id>
-      <username>${env.SONATYPE_USERNAME}</username>
-      <password>${env.SONATYPE_PASSWORD}</password>
-    </server>
   </servers>
 </settings>


[servicecomb-toolkit] 01/02: [SCB-1639] the configuration about deploying jars to snapshot repository

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 3335e4085be03eeebe00a9ccb2abe446744267aa
Author: MabinGo <bi...@huawei.com>
AuthorDate: Tue Dec 3 18:23:26 2019 +0800

    [SCB-1639] the configuration about deploying jars  to snapshot repository
    
    Signed-off-by: MabinGo <bi...@huawei.com>
---
 .travis.settings.xml | 32 ++++++++++++++++++++++++++++++++
 .travis.yml          | 10 ++++++----
 scripts/deploy.sh    | 28 ++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+), 4 deletions(-)

diff --git a/.travis.settings.xml b/.travis.settings.xml
new file mode 100644
index 0000000..6c2fd59
--- /dev/null
+++ b/.travis.settings.xml
@@ -0,0 +1,32 @@
+<!--
+  ~ 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
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ 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.
+  -->
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+  <servers>
+    <server>
+      <id>apache.snapshots.https</id>
+      <username>${env.SONATYPE_USERNAME}</username>
+      <password>${env.SONATYPE_PASSWORD}</password>
+    </server>
+    <server>
+      <id>apache.releases.https</id>
+      <username>${env.SONATYPE_USERNAME}</username>
+      <password>${env.SONATYPE_PASSWORD}</password>
+    </server>
+  </servers>
+</settings>
diff --git a/.travis.yml b/.travis.yml
index faaba71..513de34 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,9 +32,11 @@ cache:
   - "$HOME/.m2"
 
 language: java
-
-install: true
 jdk:
 - openjdk8
-
-script: ./scripts/test.sh
+jobs:
+  include:
+  - stage: Test
+    script: ./scripts/test.sh
+  - stage: Deploy on
+    script: if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then bash ./scripts/deploy.sh; fi
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
new file mode 100755
index 0000000..b68544c
--- /dev/null
+++ b/scripts/deploy.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+## ---------------------------------------------------------------------------
+## 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
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## 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.
+## ---------------------------------------------------------------------------
+#bin/sh
+
+echo "Deploy a Non-Signed Staging Release"
+mvn deploy -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -DskipTests --settings .travis.settings.xml
+if [ $? == 0 ]; then
+	echo "${green}Snapshot Deployment is Success, please log on to Nexus Repo to see the snapshot release..${reset}"
+else
+	echo "${red}Snapshot deployment failed.${reset}"
+fi
+
+echo "Deployment Completed"