Move MS Windows build to CircleCI (#17984)
* Move MS Windows build to CircleCI * Update to latest NodeJS Co-authored-by: Chris Lüer <lueer@fb.com>
wittgenst committed
Mar 12, 2020 at 17:15 UTC
885ed469096d4da7ca038564b323e9b706f5a6d0
2 files changed
+45
-42
.circleci/config.yml
+45
-1
@@ -1,4 +1,7 @@
1
-version: 2
1
+version: 2.1
2
+
3
+orbs:
4
+ win: circleci/windows@2.4.0
5
6
aliases:
7
- &docker
@@ -48,6 +51,9 @@ aliases:
51
paths:
52
- bundle-sizes.json
53
54
+ - &ms_windows_environment
55
+ JAVA_HOME: C:\Program Files\Java\jdk1.8.0
56
+
57
jobs:
58
setup:
59
docker: *docker
@@ -464,6 +470,38 @@ jobs:
470
RELEASE_CHANNEL: experimental
471
command: yarn test-build-prod --maxWorkers=2
472
473
+ test_ms_windows:
474
+ executor:
475
+ name: win/default
476
+ environment: *ms_windows_environment
477
+ steps:
478
+ - run:
479
+ # Fix line endings in Windows.
480
+ command: git config --global core.autocrlf input
481
+ - checkout
482
+ - restore_cache:
483
+ keys:
484
+ - v2-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
485
+ - v2-win-node-{{ arch }}-{{ .Branch }}-
486
+ - v2-win-node-{{ arch }}-
487
+ - run:
488
+ command: node --version
489
+ - run:
490
+ command: choco install yarn
491
+ - *run_yarn
492
+ - save_cache:
493
+ key: v2-win-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
494
+ paths:
495
+ - C:\Users\circleci\AppData\Local\Yarn
496
+ - run:
497
+ command: yarn lint
498
+ - run:
499
+ command: yarn build
500
+ - run:
501
+ command: yarn test
502
+ - run:
503
+ command: yarn prettier
504
+
505
workflows:
506
version: 2
507
stable:
@@ -578,3 +616,9 @@ workflows:
616
- test_fuzz:
617
requires:
618
- setup
619
+
620
+ ms_windows:
621
+ jobs:
622
+ - test_ms_windows
623
+
624
+
appveyor.yml
deleted
-41
@@ -1,41 +0,0 @@
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
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
9
- matrix:
10
- - nodejs_version: 10
11
-
12
-# Finish on first failed build
13
-matrix:
14
- fast_finish: true
15
-
16
-platform:
17
- - x64
18
-
19
-branches:
20
- only:
21
- - master
22
-
23
-# Disable Visual Studio build and deploy
24
-build: off
25
-deploy: off
26
-
27
-install:
28
- - ps: Install-Product node $env:nodejs_version $env:platform
29
- - yarn install --frozen-lockfile
30
-
31
-test_script:
32
- - node --version
33
- - yarn lint
34
-# - yarn flow-ci
35
- - yarn build
36
- - yarn test
37
- - yarn prettier
38
-
39
-cache:
40
- - node_modules
41
- - "%LOCALAPPDATA%/Yarn"