Skip to content

Commit

Permalink
Merge pull request #4 from open-cluster-management/secure-engg
Browse files Browse the repository at this point in the history
sonar onboarding
  • Loading branch information
ckandag authored Mar 23, 2020
2 parents b907e51 + 7db136c commit 802f5a6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ branches:
- master
- /^release-[0-9]+\..*$/

addons:
sonarcloud:
organization: "open-cluster-management"
token:
secure: "YfBu5HaTQCnvYXc9K5kkgCE+bpgjUPoV8jbI8/FoapBOZk8VbSkSArtgRZiv2TjgAKtU/vh2PqTfffpudjKMdr2oFloYQdWIcMMxBz1PFARUGQgxGjFhG8vTQEQh2cEfpqhmbi7uFfgQPFRpsuz3R5ZJelDPSj3a+OSVOjlu3EapRZrQRdOCCqd1XPCLGZPn/OrdnRQI3ILBohGfH4bU+e1tUUZelDH3ZKqlEQARxwQ2ZWXdTrVRAuHHrd+H1zqdAVILZBuJ2W5o5BOVyUNkcERWNhX/UiN8Xamcs4pzR7DgUuUTQccnet9rn78jGv73bLnMIyh5RNbN56kHqPl8czEnANshMRwTd2byqF1PwH/npify1bxGxdZeW/VtqiZtmITreEcRf5FJIiaiMHskwGLsmodOd0axnpekOJN57NBY6JlcOEUYQcr1ViCdNkL3+9KEHi6+XzQSr5ZeoY3JoR22jtqD3SUBf0nMw7qx/GRBj+tJ7hPLXjx9ZMf8tZ4TFgswlR37j0by0ZQO8PAkUhHepUa5n3Q515Q3jgIJB1jz09ZZJDhaL+1PcnCsweAa+sVzT1AqSIkv/Tg59ydE4g3nItVsSAWlrnU5EKLPGqZyZlHvmPI5wfxEsSUE2TnB+9TxwqnXR09iXe2M8Q53y7zAV3L1IzMjJD0ln7DDgFk="
env:
global:
# Required
Expand Down Expand Up @@ -39,10 +44,12 @@ jobs:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export COMPONENT_TAG_EXTENSION="-PR${TRAVIS_PULL_REQUEST}-${TRAVIS_COMMIT}"; fi;
- make component/build
- make component/push
- if [ "$IMAGE_SCAN" != "false" ]; then make security/scans; fi;
- stage: unit-test
name: "Build and run unit tests"
script:
- make component/test/unit
- make sonar/go
- stage: test-e2e
name: "Run e2e tests"
if: type = pull_request
Expand All @@ -54,4 +61,4 @@ jobs:
name: "Publish the image to quay with an official version/sha tag and publish entry to integration pipeline stage"
if: type = push AND branch =~ /^release-[0-9]+\..*$/
script:
- make pipeline-manifest/update PIPELINE_MANIFEST_COMPONENT_SHA256=${TRAVIS_COMMIT} PIPELINE_MANIFEST_COMPONENT_REPO=${TRAVIS_REPO_SLUG} PIPELINE_MANIFEST_BRANCH=${TRAVIS_BRANCH}
- make pipeline-manifest/update PIPELINE_MANIFEST_COMPONENT_SHA256=${TRAVIS_COMMIT} PIPELINE_MANIFEST_COMPONENT_REPO=${TRAVIS_REPO_SLUG} PIPELINE_MANIFEST_BRANCH=${TRAVIS_BRANCH}
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=open-cluster-management_management-ingress
sonar.projectName=management-ingress
sonar.sources=.
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/*_generated*.go,**/*_generated/**,**/vendor/**
sonar.go.tests.reportPaths=report.json
sonar.go.coverage.reportPaths=coverage.out
sonar.externalIssuesReportPaths=gosec.json

0 comments on commit 802f5a6

Please sign in to comment.