Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
Enable CircleCI (#295)
Browse files Browse the repository at this point in the history
* Enable CircleCI
* Fix tests
  • Loading branch information
kornicameister authored Apr 7, 2018
1 parent 591bae9 commit fb902fc
Show file tree
Hide file tree
Showing 11 changed files with 59 additions and 58 deletions.
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2
jobs:
verify:
docker:
- image: circleci/node:9.11.1

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- run: yarn install
- save_cache:
paths:
- ~/.cache/yarn
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}

- run: yarn lint
- run: yarn test
- run: yarn coverage
build:
docker:
- image: circleci/node:9.11.1

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- run: yarn install
- save_cache:
paths:
- ~/.cache/yarn
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}

- run: yarn build

workflows:
version: 2
pipeline:
jobs:
- verify
- build
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.2.8",
"private": true,
"engines": {
"node": "9.9.0"
"node": "9.11.1"
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
Expand Down
2 changes: 1 addition & 1 deletion src/common/card.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';

interface ClickableCardProps {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cv/basics.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';

const enum Profiles {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cv/school.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';

import './school.css';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cv/skills.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';

import { ClickableCard } from '../../common/card';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cv/work.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as moment from 'moment';
import * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/stats/stats_page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classnames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';
import { LoadableComponent } from 'react-loadable';
import { Container, Nav, NavLink, TabContent, TabPane } from 'reactstrap';
Expand Down
4 changes: 2 additions & 2 deletions src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as classNames from 'classnames';
import classnames from 'classnames';
import * as React from 'react';
import { LoadingComponentProps } from 'react-loadable';
import { Container } from 'reactstrap';
Expand All @@ -15,7 +15,7 @@ export default class RouteLoader extends React.Component<LoadingComponentProps>
}

private renderLoader(): JSX.Element | null {
const classes = classNames('alert', {
const classes = classnames('alert', {
'alert-danger': !this.props.isLoading && this.props.error,
'alert-info': this.props.isLoading && !this.props.timedOut && this.props.pastDelay,
'alert-warning': this.props.isLoading && this.props.timedOut,
Expand Down
2 changes: 1 addition & 1 deletion src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ global.requestAnimationFrame = callback => {
// init env

import { configure as EnzymeConfigure } from 'enzyme';
import * as Adapter from 'enzyme-adapter-react-16';
import Adapter from 'enzyme-adapter-react-16';

EnzymeConfigure({ adapter: new Adapter() });

0 comments on commit fb902fc

Please sign in to comment.