Skip to content

JavaScript code to create a Black Jack card game and use JavaScript test tools and a CI chain for educational purpose.

License

Notifications You must be signed in to change notification settings

janaxs/blackjack

Repository files navigation

Black Jack game

Build Status CircleCI Coverage Status codecov Maintainability Codacy Badge

Build Status Scrutinizer Code Quality Code Coverage

To show off test tools and a CI chain in JavaScript.

Run testsuite

Clone the repo and run the testsuite using a local environment or using Docker.

Local development environment

Install the development tools and execute the validation tools and the testsuite.

make install
make test

Code coverage report in HTML is available in build/coverage.

Run tests in Docker

Use docker-compose to run the validation tools and the testsuite in one of several available Docker containers.

# node latest (alpine)
docker-compose run node_latest make check test
docker-compose run node_alpine make check test

# node v7 (alpine)
docker-compose run node_7 make check test
docker-compose run node_7_alpine make check test

# node v6 (alpine)
docker-compose run node_6 make check test
docker-compose run node_6_alpine make check test
 .                                                             
..:  Copyright (c) 2017 Mikael Roos, mos@dbwebb.se             

About

JavaScript code to create a Black Jack card game and use JavaScript test tools and a CI chain for educational purpose.

Resources

License

Stars

Watchers

Forks

Packages

No packages published