Skip to content

Commit

Permalink
👷 add travis and sonar cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
tychota committed Oct 21, 2019
1 parent 7165380 commit 66fa5bc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2.1

jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run:
name: Install dependencies
command: yarn
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run:
name: Build project
command: yarn build
- run:
name: Lint
command: yarn lint
- run:
name: Test
command: yarn test
- sonarcloud/scan

orbs:
sonarcloud: sonarsource/sonarcloud@1.0.0

workflows:
main:
jobs:
- build:
context: SonarCloud

0 comments on commit 66fa5bc

Please sign in to comment.