Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Use yarn in CircleCi #1423

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Example/__tests__/Example-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';

import Example from '../Example';
jest.unmock('Image');
jest.unmock('RCTEventEmitter');

import renderer from 'react-test-renderer';

Expand Down
20 changes: 15 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
machine:
pre:
- mkdir ~/.yarn-cache
node:
version: 7
version: stable
dependencies:
pre:
# Install Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn=0.17.8-1
cache_directories:
- ~/.yarn-cache
override:
- npm install
- yarn install
- ? |
case $CIRCLE_NODE_INDEX in
2)
cd Example
npm install
yarn install
;;
esac
:
Expand All @@ -21,11 +31,11 @@ test:
node node_modules/eslint/bin/eslint index.js src/ test/ -o $CIRCLE_TEST_REPORTS/eslint/eslint.xml -f junit
;;
1)
MOCHA_FILE=$CIRCLE_TEST_REPORTS/mocha/junit.xml npm test -- --reporter mocha-junit-reporter
MOCHA_FILE=$CIRCLE_TEST_REPORTS/mocha/junit.xml yarn test -- --reporter mocha-junit-reporter
;;
2)
cd Example
npm run jest
yarn run jest
;;
esac
:
Expand Down