Skip to content

Commit a2b6b6b

Browse files
raphamorimgaearon
authored andcommitted
Migrate to CircleCI2.0 and Add AppVeyor for master-only branch (#11605)
* add appveyor config file * migrate circleci 1.0 to circleci 2.0 * remove upload step in favour of #11666
1 parent 7788bcd commit a2b6b6b

File tree

3 files changed

+87
-34
lines changed

3 files changed

+87
-34
lines changed

.circleci/config.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
name: Restore node_modules cache
29+
keys:
30+
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
31+
- v1-node-{{ arch }}-{{ .Branch }}-
32+
- v1-node-{{ arch }}-
33+
34+
- run:
35+
name: Nodejs Version
36+
command: node --version
37+
38+
- run:
39+
name: Install Packages
40+
command: yarn install
41+
42+
- run:
43+
name: Test Packages
44+
command: ./scripts/circleci/test_entry_point.sh
45+
46+
- save_cache:
47+
name: Save node_modules cache
48+
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
49+
paths:
50+
- node_modules

appveyor.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
image: Visual Studio 2017
2+
3+
# Fix line endings in Windows. (runs before repo cloning)
4+
init:
5+
- git config --global core.autocrlf input
6+
7+
environment:
8+
matrix:
9+
- nodejs_version: 8
10+
11+
# Finish on first failed build
12+
matrix:
13+
fast_finish: true
14+
15+
platform:
16+
- x64
17+
18+
branches:
19+
only:
20+
- master
21+
22+
# Disable Visual Studio build and deploy
23+
build: off
24+
deploy: off
25+
26+
install:
27+
- ps: Install-Product node $env:nodejs_version $env:platform
28+
- yarn install
29+
30+
test_script:
31+
- node --version
32+
- yarn build
33+
- yarn test
34+
35+
cache:
36+
- node_modules
37+
- "%LOCALAPPDATA%/Yarn"

circle.yml

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

0 commit comments

Comments
 (0)