Skip to content

Commit

Permalink
migrate circleci 1.0 to circleci 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Nov 20, 2017
1 parent 543b62c commit 0764dec
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 40 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:
build:

docker:
- image: circleci/node:8

environment:
TZ: /usr/share/zoneinfo/America/Los_Angeles
YARN_VERSION: 1.2.1
TRAVIS_REPO_SLUG: facebook/react

parallelism: 4

steps:
- checkout

- run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7

- run:
name: Install Yarn
command: |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
- restore_cache:
key: node-modules-{{ checksum "yarn.lock" }}

- run:
name: Nodejs Version
command: node --version

- run:
name: Install Packages
command: yarn install

- run:
name: Test Packages
command: ./scripts/circleci/test_entry_point.sh

- save_cache:
key: node-modules-{{ checksum "yarn.lock" }}
paths:
- node_modules

- deploy:
name: Upload Build
command: ./scripts/circleci/upload_build.sh
40 changes: 0 additions & 40 deletions circle.yml

This file was deleted.

0 comments on commit 0764dec

Please sign in to comment.