forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to CircleCI2.0 and Add AppVeyor for master-only branch (faceb…
…ook#11605) * add appveyor config file * migrate circleci 1.0 to circleci 2.0 * remove upload step in favour of facebook#11666
- Loading branch information
1 parent
7788bcd
commit a2b6b6b
Showing
3 changed files
with
87 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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: | ||
name: Restore node_modules cache | ||
keys: | ||
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- v1-node-{{ arch }}-{{ .Branch }}- | ||
- v1-node-{{ arch }}- | ||
|
||
- 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: | ||
name: Save node_modules cache | ||
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
image: Visual Studio 2017 | ||
|
||
# Fix line endings in Windows. (runs before repo cloning) | ||
init: | ||
- git config --global core.autocrlf input | ||
|
||
environment: | ||
matrix: | ||
- nodejs_version: 8 | ||
|
||
# Finish on first failed build | ||
matrix: | ||
fast_finish: true | ||
|
||
platform: | ||
- x64 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
# Disable Visual Studio build and deploy | ||
build: off | ||
deploy: off | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- yarn install | ||
|
||
test_script: | ||
- node --version | ||
- yarn build | ||
- yarn test | ||
|
||
cache: | ||
- node_modules | ||
- "%LOCALAPPDATA%/Yarn" |
This file was deleted.
Oops, something went wrong.