This is an automated email from the ASF dual-hosted git repository. tianxiaoliang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git
commit 87e0ea93347b7e88ea6843c2a04a044286e7552b Author: Willem Jiang <willem.ji...@gmail.com> AuthorDate: Tue Jun 11 08:29:36 2019 +0800 SCB-1312 Add license header --- .travis.yml | 24 +++++++++++++++++++----- scripts/travis/goVetChecker.sh | 17 +++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a619141..6e4794f 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,21 @@ +# 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. + language: go sudo: required -go: +go: - 1.11 install: true @@ -15,11 +30,11 @@ jobs: - stage: Format Checker script: bash scripts/travis/formatChecker.sh - stage: DeadCode Checker - script: + script: - go get -u github.com/tsenart/deadcode - bash scripts/travis/deadCodeChecker.sh - stage: Misspell Checker - script: + script: - go get -u github.com/client9/misspell - bash scripts/travis/misspellChecker.sh - stage: GoConst Checker @@ -44,7 +59,6 @@ jobs: - bash scripts/travis/unit_test.sh && $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci - stage: Build - script: + script: - cd build - ./build_server.sh - diff --git a/scripts/travis/goVetChecker.sh b/scripts/travis/goVetChecker.sh index 8b15de5..7a7384f 100755 --- a/scripts/travis/goVetChecker.sh +++ b/scripts/travis/goVetChecker.sh @@ -1,3 +1,20 @@ +#!/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. + diff -u <(echo -n) <(find . -type d -not -path "./vendor/*" -not -path "./third_party/*"| xargs go vet ) if [ $? == 0 ]; then echo "Hurray....all OKAY..."