Skip to content

Commit

Permalink
Move MS Windows build to CircleCI (#17984)
Browse files Browse the repository at this point in the history
* Move MS Windows build to CircleCI

* Update to latest NodeJS

Co-authored-by: Chris Lüer <lueer@fb.com>
  • Loading branch information
wittgenst and Chris Lüer committed Mar 13, 2020
1 parent 2a7cd58 commit 885ed46
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 42 deletions.
46 changes: 45 additions & 1 deletion .circleci/config.yml
@@ -1,4 +1,7 @@
version: 2
version: 2.1

orbs:
win: circleci/windows@2.4.0

aliases:
- &docker
Expand Down Expand Up @@ -48,6 +51,9 @@ aliases:
paths:
- bundle-sizes.json

- &ms_windows_environment
JAVA_HOME: C:\Program Files\Java\jdk1.8.0

jobs:
setup:
docker: *docker
Expand Down Expand Up @@ -464,6 +470,38 @@ jobs:
RELEASE_CHANNEL: experimental
command: yarn test-build-prod --maxWorkers=2

test_ms_windows:
executor:
name: win/default
environment: *ms_windows_environment
steps:
- run:
# Fix line endings in Windows.
command: git config --global core.autocrlf input
- checkout
- restore_cache:
keys:
- v2-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v2-win-node-{{ arch }}-{{ .Branch }}-
- v2-win-node-{{ arch }}-
- run:
command: node --version
- run:
command: choco install yarn
- *run_yarn
- save_cache:
key: v2-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- C:\Users\circleci\AppData\Local\Yarn
- run:
command: yarn lint
- run:
command: yarn build
- run:
command: yarn test
- run:
command: yarn prettier

workflows:
version: 2
stable:
Expand Down Expand Up @@ -578,3 +616,9 @@ workflows:
- test_fuzz:
requires:
- setup

ms_windows:
jobs:
- test_ms_windows


41 changes: 0 additions & 41 deletions appveyor.yml

This file was deleted.

0 comments on commit 885ed46

Please sign in to comment.