Skip to content

Commit

Permalink
build: Run unit tests on AppVeyor
Browse files Browse the repository at this point in the history
Set docker-compose.yml version to 2.1 to fix a strange issue on Windows.
See: docker/compose#4106

This may not occur anymore since we finally used docker-for-windows
instead of the preinstalled docker in AppVeyor's VS2017 image.

We also don't need to `DockerCli -SwitchDaemon`.
  • Loading branch information
sebn committed Apr 10, 2017
1 parent 06b1074 commit b2ad7ca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
environment:
nodejs_version: "6"

install:
- ps: Install-Product node $env:nodejs_version
- yarn
- ps: choco install docker-for-windows --ignore-checksums

build: off

test_script:
- node --version
- npm --version
- yarn --version
- docker version
- docker-compose version
- docker-compose build
- docker-compose create
- docker-compose start
- yarn bootstrap
- yarn test-unit
- docker-compose stop

on_failure:
- ps: cat C:\ProgramData\chocolatey\logs\chocolatey.log
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2'
version: '2.1'
services:
couch:
image: klaemo/couchdb:2.0.0
Expand Down

0 comments on commit b2ad7ca

Please sign in to comment.