Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
evheniy committed Jul 31, 2017
1 parent 19ca657 commit f226c68
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
image: Visual Studio 2017
environment:

MYSQL_DATABASE: yeps
MYSQL_HOST: localhost
MYSQL_USER: root
MYSQL_PASSWORD: Password12!
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7

matrix:
- nodejs_version: "8"

services:
- mysql

install:
- ps: Install-Product node $env:nodejs_version
- docker pull charmingsteve/windows-mysql
- echo {"mysql":{"user":"root","password":"Password12!","database":"yeps","connectionLimit":10}} > config/default.json
- npm install
- docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=yeps charmingsteve/windows-mysql
- node -e "setTimeout(()=>1, 10000)"

before_test:
- SET PATH=%MYSQL_PATH%\bin;%PATH%
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%

test_script:
- docker version
- mysql --version
- node --version
- npm --version
- npm run lint
- npm run test:security
- npm run test:code

build: off

0 comments on commit f226c68

Please sign in to comment.