From 00046741f0b9e8019e480468462dc991ddee97db Mon Sep 17 00:00:00 2001 From: anuruddhal Date: Fri, 3 May 2019 11:47:44 +0530 Subject: [PATCH] Add codecov support --- .codecov.yml | 17 +++++++++++++++++ .travis.yml | 15 +++++++++++++++ test-cases/hello-world-api/hello-world-api.bal | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..bb7827cc --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,17 @@ +# Copyright (c) 2019, WSO2 Inc. (http://wso2.com) All Rights Reserved. +# +# Licensed 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. + +codecov: + ci: + - travis diff --git a/.travis.yml b/.travis.yml index e276077d..e15575b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,16 @@ +# Copyright (c) 2019, WSO2 Inc. (http://wso2.com) All Rights Reserved. +# +# Licensed 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. dist: xenial node_js: - 9.11.2 @@ -16,3 +29,5 @@ before_install: - export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/cellery-io/sdk - cd $HOME/gopath/src/github.com/cellery-io/sdk script: make all +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/test-cases/hello-world-api/hello-world-api.bal b/test-cases/hello-world-api/hello-world-api.bal index 60f3f1ec..40e7f2b4 100644 --- a/test-cases/hello-world-api/hello-world-api.bal +++ b/test-cases/hello-world-api/hello-world-api.bal @@ -52,4 +52,4 @@ public function build(cellery:ImageName iName) returns error? { //Build Hello Cell io:println("Building Hello World Cell ..."); return cellery:createImage(helloCell, iName); -} \ No newline at end of file +}