docker-compose run --rm -e SKIP="AuthorName AuthorEmail" cookbook \
bash -c "chef exec bundle exec overcommit --sign && chef exec bundle exec overcommit -r && chef exec bundle exec rspec"
To run integration tests you need Chef Development Kit and Vagrant. After installing it, invoke:
kitchen converge
kitchen verify