Skip to content

Commit 4408107

Browse files
committed
fix & dockerize bin/test
this was old & not up to date or useful: I'm co-opting it to run the spec suite in docker to avoid local setup woes.
1 parent 16355e7 commit 4408107

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/test

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#!/usr/bin/env ruby
1+
#!/bin/sh
2+
set -ex
23

3-
module_path = File.expand_path('../../node_modules/esprima', __FILE__)
4-
5-
print `npm install esprima` unless File.directory?(module_path)
6-
7-
print `script -q /dev/null bundle exec rake `
4+
docker build -t codeclimate/codeclimate-duplication .
5+
docker run codeclimate/codeclimate-duplication bundle exec rake

0 commit comments

Comments
 (0)