This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from launchdarkly/eb/ch56746/windows-ci
use CircleCI for Windows build
- Loading branch information
Showing
2 changed files
with
35 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 |
---|---|---|
@@ -1,25 +1,29 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
win: circleci/[email protected] | ||
|
||
workflows: | ||
workflow: | ||
build-and-test-all: | ||
jobs: | ||
- build-and-test: | ||
- build-test-linux: | ||
name: latest Node version | ||
docker-image: circleci/node:latest | ||
run-lint: true | ||
- build-and-test: | ||
- build-test-linux: | ||
name: oldest supported Node version | ||
docker-image: circleci/node:6 | ||
run-lint: false | ||
- build-test-windows: | ||
name: Windows | ||
|
||
jobs: | ||
build-and-test: | ||
build-test-linux: | ||
parameters: | ||
run-lint: | ||
type: boolean | ||
default: false | ||
docker-image: | ||
type: string | ||
default: circleci/node:latest | ||
docker: | ||
- image: <<parameters.docker-image>> | ||
- image: redis | ||
|
@@ -43,3 +47,28 @@ jobs: | |
path: reports/junit | ||
- store_artifacts: | ||
path: reports/junit | ||
|
||
build-test-windows: | ||
executor: | ||
name: win/vs2019 | ||
shell: powershell.exe | ||
steps: | ||
- checkout | ||
- run: | ||
name: set up Redis | ||
command: | | ||
$ProgressPreference = "SilentlyContinue" # prevents console errors from CircleCI host | ||
iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip | ||
mkdir redis | ||
Expand-Archive -Path redis.zip -DestinationPath redis | ||
- run: | ||
name: start Redis | ||
command: | | ||
cd redis | ||
./redis-server --service-install | ||
./redis-server --service-start | ||
Start-Sleep -s 5 | ||
./redis-cli ping | ||
- run: node --version | ||
- run: npm install | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.