Skip to content

Commit 0764dec

Browse files
committed
migrate circleci 1.0 to circleci 2.0
1 parent 543b62c commit 0764dec

File tree

2 files changed

+49
-40
lines changed

2 files changed

+49
-40
lines changed

.circleci/config.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: 2
2+
jobs:
3+
build:
4+
5+
docker:
6+
- image: circleci/node:8
7+
8+
environment:
9+
TZ: /usr/share/zoneinfo/America/Los_Angeles
10+
YARN_VERSION: 1.2.1
11+
TRAVIS_REPO_SLUG: facebook/react
12+
13+
parallelism: 4
14+
15+
steps:
16+
- checkout
17+
18+
- run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7
19+
20+
- run:
21+
name: Install Yarn
22+
command: |
23+
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
24+
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
25+
fi
26+
27+
- restore_cache:
28+
key: node-modules-{{ checksum "yarn.lock" }}
29+
30+
- run:
31+
name: Nodejs Version
32+
command: node --version
33+
34+
- run:
35+
name: Install Packages
36+
command: yarn install
37+
38+
- run:
39+
name: Test Packages
40+
command: ./scripts/circleci/test_entry_point.sh
41+
42+
- save_cache:
43+
key: node-modules-{{ checksum "yarn.lock" }}
44+
paths:
45+
- node_modules
46+
47+
- deploy:
48+
name: Upload Build
49+
command: ./scripts/circleci/upload_build.sh

circle.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)