Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #159 from launchdarkly/eb/ch56746/windows-ci
Browse files Browse the repository at this point in the history
use CircleCI for Windows build
  • Loading branch information
eli-darkly authored Nov 21, 2019
2 parents 862a491 + 193f2d4 commit dc2755a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 34 deletions.
41 changes: 35 additions & 6 deletions .circleci/config.yml
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
Expand All @@ -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
28 changes: 0 additions & 28 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit dc2755a

Please sign in to comment.