Skip to content

Commit

Permalink
chore: add windows job to circle ci (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo committed Mar 30, 2020
1 parent 84a5abc commit fd7e5ed
Show file tree
Hide file tree
Showing 26 changed files with 61 additions and 47 deletions.
38 changes: 37 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,41 @@ defaults: &defaults
LC_TYPE: en_US.UTF-8
NODE_OPTIONS: --max_old_space_size=4096

version: 2
version: 2.1
orbs:
win: circleci/windows@2.4.0
executorType: docker
jobs:
windows-test:
executor: win/default
steps:
- checkout
- run:
name: Install latest yarn
command: |
(New-Object Net.WebClient).DownloadFile("https://yarnpkg.com/latest.msi", "$env:temp\yarn.msi")
cmd /c start /wait msiexec.exe /i $env:temp\yarn.msi /quiet /qn /norestart /log install.log
- run:
name: Verify yarn installation
command: |
if (!(Test-Path -Path "C:\Program Files (x86)\Yarn\bin\yarn" -PathType Leaf)) {
Write-Host "> Installation failed." -ForegroundColor Red
Write-Host "" -ForegroundColor Red
exit 1
}
- restore_cache:
keys:
- node-modules-v1-win-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn install
- save_cache:
paths:
- ./node_modules
key: node-modules-v1-win-{{ checksum "yarn.lock" }}
- run:
name: Test and Lint
command: yarn test
node12-test: &test
<<: *defaults
resource_class: large
Expand Down Expand Up @@ -132,6 +164,10 @@ workflows:
version: 2
heroku_cli:
jobs:
- windows-test:
filters:
tags: &version_tags
only: /^v.*/
- node12-test:
filters:
tags: &version_tags
Expand Down
22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/addons-v5/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--recursive
--check-leaks
--require ./test/init.js
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/apps-v5/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--require ./test/helpers.js
--reporter list
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/apps/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/auth/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/autocomplete/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/buildpacks/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/certs-v5/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--require ./test/helpers.js
--reporter list
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/certs/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/ci-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test
--recursive
--timeout 50000
--timeout 60000
-R dot
2 changes: 1 addition & 1 deletion packages/ci/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/config/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/container-registry-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--require ./test/helpers.js
--reporter list
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/git/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/local/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/oauth-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--require ./test/init.js
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/oauth/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/orgs-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--require ./test/helpers.js
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/pg-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--recursive
--require ./test/init.js
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/ps/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/redis-v5/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
--reporter list
--recursive
--exit
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/run-v5/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--require ./test/init.js
--recursive
--timeout 100000
--timeout 60000
--exit
2 changes: 1 addition & 1 deletion packages/spaces/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--require ./test/helpers.js
--reporter list
--recursive
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/status/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000
2 changes: 1 addition & 1 deletion packages/webhooks/test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
--watch-extensions ts
--recursive
--reporter spec
--timeout 50000
--timeout 60000

0 comments on commit fd7e5ed

Please sign in to comment.