Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
pipeline: enable linux macos and windows (#35)
Browse files Browse the repository at this point in the history
* pipeline: enable linux macos and windows

* test: add avatar atom test to pass tests in pipelines

* pipeline: replace lts with actual lts version as workaround

See travis-ci/travis.rb#561
  • Loading branch information
byCedric authored Oct 14, 2018
1 parent 4251cff commit 30480a3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,41 @@
language: node_js
node_js:
- node
- lts/*
- 8

os:
- linux
- osx
- windows

cache:
directories:
- node_modules

install:
- npm install

script:
- npx commitlint-travis
- npx stylelint ./src/**/*.js
- npx eslint ./src
- npm test -- --coverage
- npx react-scripts test --coverage

after_success:
- npx codecov

deploy:
- provider: script
skip_cleanup: true
script:
- npx semantic-release --dry-run --branch develop
on:
branch: develop
node: lts/*
node: 8
- provider: script
skip_cleanup: true
script:
- npx semantic-release
on:
branch: master
node: lts/*
node: 8
19 changes: 19 additions & 0 deletions src/atoms/avatar/avatar.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Avatar from './avatar';

describe('atoms/avatar', () => {
it('renders without crashing', () => {
const div = document.createElement('div');
const component = (
<Avatar
url="https://avatars2.githubusercontent.com/u/1203991?v=4"
name="Cedric van Putten"
title="Cedric van Putten - @byCedric"
/>
);

ReactDOM.render(component, div);
ReactDOM.unmountComponentAtNode(div);
});
});

0 comments on commit 30480a3

Please sign in to comment.