Skip to content

Commit

Permalink
Merge pull request #1048 from rhuss/circle-ci
Browse files Browse the repository at this point in the history
Circle CI integration
  • Loading branch information
rhuss authored Jul 6, 2018
2 parents 24bf0ee + 63c8f1e commit 772622c
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 44 deletions.
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: 2

jobs:
# Build Website
doc:
working_directory: ~/fabric8io/dmp-docs
docker:
- image: circleci/node:8-browsers
steps:
- checkout
- run:
- git config --global user.email "[email protected]"
- git config --global user.name "CircleCI"
- run: ./doc/ci-docs.sh

# Run unit tests
build:
working_directory: ~/fabric8io/docker-maven-plugin
docker:
- image: circleci/openjdk:8-node-browsers
steps:
- checkout
- restore_cache:
key: dmp-{{ checksum "pom.xml" }}
- run: mvn install -Pjacoco
- run: bash <(curl -s https://codecov.io/bash)
- save_cache:
key: dmp-{{ checksum "pom.xml" }}
paths:
- ~/.m2

sonar:
working_directory: ~/fabric8io/dmp-sonar
docker:
- image: circleci/openjdk:8-node-browsers
steps:
- checkout
- restore_cache:
key: dmp-sonar-{{ checksum "pom.xml" }}
- run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN}
- save_cache:
key: dmp-sonar-{{ checksum "pom.xml" }}
paths:
- ~/.m2

workflows:
version: 2
all:
jobs:
- doc:
filters:
branches:
only: dmp.fabric8.io
- build
7 changes: 1 addition & 6 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ coverage:
range: "45...90"
precision: 2
round: down
notify:
slack:
default:
url: "https://hooks.slack.com/services/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"
threshold: "2%"
status:
project:
default:
threshold: "2%"
comment:
layout: "header, diff, tree, sunburst"
require_changes: true

11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

27 changes: 0 additions & 27 deletions circle.yml

This file was deleted.

0 comments on commit 772622c

Please sign in to comment.