Skip to content

Commit

Permalink
Add circle ci (#89)
Browse files Browse the repository at this point in the history
* style: update lint in tests

* chore: update dependencies

* ci: add circleci config

* ci: remove travis config

* chore: change build badge
  • Loading branch information
angeliski authored Sep 27, 2020
1 parent e02ac48 commit 6b036f5
Show file tree
Hide file tree
Showing 7 changed files with 2,237 additions and 899 deletions.
86 changes: 86 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
version: 2.1

aliases:
- &restore_cache
name: Restore cache
key: v3-cache-{{ checksum "yarn.lock" }}

- &save_cache
name: Save cache
paths:
- ~/.cache
key: v3-cache-{{ checksum "yarn.lock" }}

- &circleci_node
- image: circleci/node:12.0.0

defaults: &defaults
docker:
- image: circleci/node:12.0.0
working_directory: ~/vue-tabulator

jobs:
test_build:
<<: *defaults
steps:
- checkout
- restore_cache: *restore_cache
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- run:
name: Install peerDependencies
command: npx @team-griffin/install-self-peers

- save_cache: *save_cache
- persist_to_workspace:
root: '.'
paths:
- '*'
- cypress/*

lint_test:
<<: *defaults
steps:
- attach_workspace:
at: ~/vue-tabulator
- run:
name: Run Lint
command: yarn lint

unit_test:
<<: *defaults
steps:
- attach_workspace:
at: ~/vue-tabulator
- run:
name: Run Unit Tests
command: yarn test:unit

e2e_test:
<<: *defaults
docker:
- image: cypress/base:12
steps:
- attach_workspace:
at: ~/vue-tabulator
- run: npx cypress install
- run:
name: Run E2E
command: yarn test:e2e

workflows:
version: 2

branch-workflow:
jobs:
- test_build
- lint_test:
requires:
- test_build
- unit_test:
requires:
- test_build
- e2e_test:
requires:
- test_build
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/angeliski/vue-tabulator.svg?branch=master)](https://travis-ci.org/angeliski/vue-tabulator) [![Coverage Status](https://coveralls.io/repos/github/angeliski/vue-tabulator/badge.svg?branch=master)](https://coveralls.io/github/angeliski/vue-tabulator?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/angeliski/vue-tabulator.svg)](https://greenkeeper.io/)
[![Angeliski](https://circleci.com/gh/angeliski/vue-tabulator.svg?style=svg)](https://circleci.com/gh/angeliski/vue-tabulator)
[![Coverage Status](https://coveralls.io/repos/github/angeliski/vue-tabulator/badge.svg?branch=master)](https://coveralls.io/github/angeliski/vue-tabulator?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/angeliski/vue-tabulator.svg)](https://greenkeeper.io/)

# ![logo](./docs/.vuepress/public/assets/img/logo.png)

Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The best way to use Tabulator in Vue projects",
"version": "1.0.0",
"engines": {
"node": ">=10"
"node": ">=12"
},
"scripts": {
"release": "release-it",
Expand Down Expand Up @@ -55,26 +55,27 @@
"dependencies": {
"@types/dashify": "^1.0.0",
"@types/lodash.mergewith": "^4.6.6",
"@types/tabulator-tables": "^4.4.3",
"@types/tabulator-tables": "4.7.2",
"core-js": "^3.3.6",
"dashify": "^2.0.0",
"lodash.mergewith": "^4.6.2",
"vue-class-component": "^7.1.0",
"vue-property-decorator": "^8.3.0"
},
"peerDependencies": {
"tabulator-tables": "^4.4.3",
"vue": "^2.6.10"
"tabulator-tables": "4.7.2",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
},
"devDependencies": {
"@types/jest": "^24.0.21",
"@typescript-eslint/parser": "^2.6.1",
"@vue/cli-plugin-babel": "^4.0.5",
"@vue/cli-plugin-e2e-cypress": "^4.0.5",
"@vue/cli-plugin-eslint": "^4.0.5",
"@vue/cli-plugin-typescript": "^4.0.5",
"@vue/cli-plugin-unit-jest": "^4.0.5",
"@vue/cli-service": "^4.0.5",
"@vue/cli-plugin-babel": "^4.5.6",
"@vue/cli-plugin-e2e-cypress": "^4.5.6",
"@vue/cli-plugin-eslint": "^4.5.6",
"@vue/cli-plugin-typescript": "^4.5.6",
"@vue/cli-plugin-unit-jest": "^4.5.6",
"@vue/cli-service": "^4.5.6",
"@vue/eslint-config-airbnb": "^4.0.1",
"@vue/eslint-config-typescript": "^4.0.0",
"@vue/test-utils": "^1.0.0-beta.20",
Expand All @@ -89,12 +90,11 @@
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-vue": "^5.2.3",
"lint-staged": "^9.4.2",
"node-sass": "^4.13.0",
"node-sass": "^4.14.1",
"release-it": "^12.4.3",
"sass-loader": "^8.0.0",
"sass-loader": "^10.0.2",
"ts-jest": "^24.1.0",
"typescript": "~3.6.4",
"vue-template-compiler": "^2.6.10",
"vuepress": "^1.2.0",
"yorkie": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/TabulatorComponent-IntegrationModule.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { shallowMount, mount } from '@vue/test-utils';
import Vue from 'vue';
import TabulatorComponent from '@/components/TabulatorComponent.vue';
import { UpdateStrategy } from '@/types';
import Vue from 'vue';

const mockSetData = jest.fn();
const mockReplaceData = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/TabulatorComponent.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { shallowMount, mount } from '@vue/test-utils';
import TabulatorComponent from '@/components/TabulatorComponent.vue';
import Vue from 'vue';
import TabulatorComponent from '@/components/TabulatorComponent.vue';
import { getInstance } from './helpers';

describe('TabulatorComponent.vue', () => {
Expand Down
Loading

0 comments on commit 6b036f5

Please sign in to comment.