Skip to content

Commit

Permalink
Replace Jenkins to use circleci (mattermost#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato authored Apr 23, 2019
1 parent 9c81cb4 commit d19d4c1
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 49 deletions.
61 changes: 61 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
version: 2.1
executors:
default:
working_directory: ~/mattermost-redux
docker:
- image: circleci/node:11.3.0

jobs:
install:
executor:
name: default
steps:
- checkout
- run: ls -la
- restore_cache:
keys:
- test-dependencies-{{ checksum "package.json" }}

- run: npm install --ignore-scripts
- run: npm run flow-typed install
- run: ls -la
- save_cache:
paths:
- node_modules
- flow-typed
key: test-dependencies-{{ checksum "package.json" }}

lint:
executor:
name: default
steps:
- checkout
- restore_cache:
keys:
- test-dependencies-{{ checksum "package.json" }}
- run: npm run check
- run: npm run flow

test:
executor:
name: default
steps:
- checkout
- restore_cache:
keys:
- test-dependencies-{{ checksum "package.json" }}
- run: npm test
- store_test_results:
path: build/

workflows:
version: 2
pr-build:
jobs:
- install
- lint:
requires:
- install
- test:
requires:
- lint
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mattermost Redux
# Mattermost Redux ![CircleCI branch](https://img.shields.io/circleci/project/github/mattermost/mattermost-redux/master.svg)

The project purpose is consolidating the storage, web utilities and logic of the webapp and React Native mobile clients into a single driver. We encourage you to use mattermost-redux to power your own Mattermost clients or integrations.

Expand Down
47 changes: 0 additions & 47 deletions build/Jenkinsfile

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"fix": "eslint --ignore-path .gitignore --ignore-pattern node_modules --quiet . --fix",
"flow": "flow",
"flow-typed": "flow-typed",
"test": "jest --forceExit --detectOpenHandles",
"test": "jest --forceExit --detectOpenHandles --maxWorkers=2",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"prepare": "npm run build"
Expand Down

0 comments on commit d19d4c1

Please sign in to comment.