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 cce678a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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:\Users\appveyor\AppData\Local\Temp\1\chocolatey\docker-for-windows.17.3.0.10296.MsiInstall.log
- ps: ls 'C:\Program Files\Docker\'
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 cce678a

Please sign in to comment.