Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
411b2c1
Groovyserv POC
pibi Apr 27, 2017
0d6c752
Java docker fixes and groovyserv warm-up
pibi Apr 28, 2017
ca21451
make this PR buildable
pibi Apr 28, 2017
179df92
Merge branch 'develop' into groovyserv
pibi May 4, 2017
3a1e37c
[Crystal] Prepend LF to output commands
kazk May 4, 2017
dec612b
[Elixir] Prepend LF to output commands
kazk May 4, 2017
49a9251
[PHP] Prepend LF to output commands
kazk May 5, 2017
86c0b4d
[PHP] format php_spec.js
kazk May 5, 2017
20646bc
eslint fixes
pibi May 8, 2017
f318a57
travis img configuration
pibi May 8, 2017
e7aa464
consistent usage of template string
pibi May 8, 2017
80792c2
Java config in the Makefile
pibi May 8, 2017
9eb6115
Updated readme
matt-lough May 18, 2017
fae4489
Make Travis pass
pibi Jun 4, 2017
19a0dba
Merge pull request #415 from pibi/groovyserv
jhoffner Jun 5, 2017
c25b79b
Add basic BF support
Apr 27, 2017
4caa0fd
Add test integration for BF
May 2, 2017
26b207e
Set the number of allowed cells to 30000
May 6, 2017
aaee6f1
Add BF documentation
May 6, 2017
f0fbdbd
Add BF examples
May 6, 2017
3cd62bc
Lock ESLint version to 3.19.0
kazk Jun 12, 2017
e57c087
Merge pull request #434 from kazk/feature/bf-r
jhoffner Jun 15, 2017
828c2bf
Merge pull request #429 from matt-lough/patch-1
jhoffner Jun 15, 2017
b4c4942
Merge pull request #421 from kazk/fix/LF/php
jhoffner Jun 15, 2017
a9b1f72
Merge pull request #417 from kazk/fix/LF/elixir
jhoffner Jun 15, 2017
e1cb669
Merge pull request #416 from kazk/fix/LF/crystal
jhoffner Jun 15, 2017
a0fcc71
Merge pull request #437 from kazk/fix/eslint-version
jhoffner Jun 15, 2017
19bb886
no longer replaces double spaces with single
jhoffner Jun 15, 2017
a5fd039
Merge branch 'develop' of https://github.com/Codewars/codewars-runner…
jhoffner Jun 15, 2017
ca2c3b5
Merge branch 'master' of https://github.com/Codewars/codewars-runner …
jhoffner Jun 15, 2017
23e5679
- Java: Custom package/class names now work (one top level class per …
jhoffner Jun 16, 2017
0aa1000
an offering to the eslint gods
jhoffner Jun 16, 2017
4978e1f
Merge pull request #438 from Codewars/develop
jhoffner Jun 16, 2017
e1f451e
Fixed Java “setup” code
jhoffner Jun 17, 2017
0551fb9
java spec improvements
jhoffner Jun 17, 2017
4af53a4
Merge pull request #439 from Codewars/develop
jhoffner Jun 17, 2017
e7cd859
Docker file for Chapel added
SLx64 Jun 25, 2017
d6fde51
Chapel envivonment information added
SLx64 Jun 25, 2017
cadf5a7
basic Chapel example
SLx64 Jun 25, 2017
8324893
custom Chapel test framework added (cw-2)
SLx64 Jun 25, 2017
8b9509b
first class functions do not work in error-handling methods
SLx64 Jun 25, 2017
30d6b5e
Chapel runner added
SLx64 Jun 25, 2017
37d541e
improved sanitized Chapel error output
SLx64 Jun 25, 2017
2d6728b
Chapel setup added
SLx64 Jun 25, 2017
5e8f6c9
Tests for Chapel added
SLx64 Jun 25, 2017
ef66c03
Added Chapel in Makefile
SLx64 Jun 25, 2017
f7e466a
Add Chapel to Travis
SLx64 Jun 27, 2017
9cc09c4
[Chapel] fixed indentation for ESLint
SLx64 Jun 27, 2017
11e2bdd
Added ham crest-core jar to Java
jhoffner Jun 27, 2017
74ba2f6
Merge pull request #441 from SLx64/chapel
jhoffner Jun 27, 2017
eed6f45
added opts.dir back in for groovyclient
jhoffner Jun 27, 2017
9f58552
an offering to the ESLint god
jhoffner Jun 27, 2017
76db7f9
Merge pull request #442 from Codewars/develop
jhoffner Jun 28, 2017
6a62d88
ordered list of installed packages
Jul 1, 2017
d9de06b
Added Node8 support + Mocha/Node versions
OverZealous Jul 5, 2017
0e6e6e8
Updated docs based on code review
OverZealous Jul 6, 2017
63ce102
Support for julia 0.6
neomatrixcode Jul 7, 2017
adffae2
update travis.yml
neomatrixcode Jul 7, 2017
39cc28e
Fixes Crystal by installing a specific version
OverZealous Jul 7, 2017
ca2b163
Update Makefile
neomatrixcode Jul 7, 2017
5b8fdd6
Increased Chapel's timeout
OverZealous Jul 7, 2017
51feada
Merge pull request #446 from OverZealous/fix_crystal
jhoffner Jul 7, 2017
736c2f2
Merge pull request #443 from AnikaErceg/patch-2
jhoffner Jul 7, 2017
0e48157
Merge pull request #444 from OverZealous/node_8_support
jhoffner Jul 7, 2017
dc6a7fa
Update julia_spec.js
neomatrixcode Jul 7, 2017
dac2deb
Update julia.js
neomatrixcode Jul 7, 2017
0f249d7
fixed
neomatrixcode Jul 7, 2017
865a1ae
update julia.js
neomatrixcode Jul 7, 2017
535650c
Update julia.js
neomatrixcode Jul 8, 2017
9df0faf
Added Gradle/Spring support to Java
jhoffner Jul 10, 2017
604cc31
- removed groovyserv reference
jhoffner Jul 10, 2017
c7e3df5
Merge pull request #445 from codeneomatrix/master
jhoffner Jul 10, 2017
0d3d897
Offering to the ESLint gods
jhoffner Jul 11, 2017
fa4a101
more eslint fixes
jhoffner Jul 11, 2017
f1c6428
Removed groovyserv install
jhoffner Jul 11, 2017
a1f1e07
Prefer outputFileSync over codeWriteSync
jhoffner Jul 11, 2017
78987c4
Merge branch 'master' of https://github.com/Codewars/codewars-runner …
jhoffner Jul 11, 2017
4f46f7d
OMG ESLint leave me the hell alone!
jhoffner Jul 11, 2017
988b58a
Enabled Typescript in Karma & Angular 2
OverZealous Jul 11, 2017
8928fca
Merge pull request #447 from Codewars/story/gradle
jhoffner Jul 11, 2017
46e972a
Pinned the versions of Typings, Coffeescript, and TypeScript
OverZealous Jul 11, 2017
f6c48ed
Merge pull request #450 from OverZealous/angular_2_support
jhoffner Jul 11, 2017
2cd6a60
Rewrite Swift runner
kazk Jul 12, 2017
241a65b
Merge pull request #451 from kazk/rewrite-swift
jhoffner Jul 12, 2017
48e9f2a
Fix Test.assert(Not)ApproxEquals (#435)
DonaldKellett Jul 12, 2017
829ff96
Code Cleanup (#452)
jhoffner Jul 13, 2017
dda7d7b
Improve Travis build time (#423)
kazk Jul 13, 2017
8ee8fbe
[F#] Prepend LF to ouput commands (#419)
kazk Jul 13, 2017
4f1e1ef
Listen.js fix/Readme (#453)
jhoffner Jul 13, 2017
77b5db0
Ruby/BF/Chapel Updates (#458)
jhoffner Jul 14, 2017
6d6c88a
Fix/warnings stderr (#459)
jhoffner Jul 15, 2017
7684f7e
UTF8 Fix for Java (#460)
jhoffner Jul 15, 2017
40d3e27
Disable warning on Tab usage (#461)
kazk Jul 15, 2017
dff05ca
Fix Swift compatibility issue around XCTMain (#465)
kazk Jul 15, 2017
824a615
Set Rust version to 1.15.1 (#464)
kazk Jul 17, 2017
9e20d99
[Nim] Add Nim
kazk Mar 16, 2017
accb6f4
[Nim] Add test integration
kazk Mar 17, 2017
fc525b4
[Nim] Add basic documentation
kazk Mar 24, 2017
9301232
[Nim] Prepend LF to output commands
kazk Mar 25, 2017
ce928b6
[Nim] Add docker-compose services
kazk Apr 4, 2017
17aebfc
[Nim] Fix ESLint errors
kazk Apr 25, 2017
a015692
[Nim] Fix CodeFactor issues
kazk Apr 26, 2017
db15b3b
[Nim] Add Nim to Travis
kazk Jun 7, 2017
3c7f377
[Nim] Set Nim version to 0.17.0
kazk Jun 7, 2017
61570a0
[Nim] Add setup file support
kazk Jul 14, 2017
2220b03
[Nim] Add test for <ERROR::>
kazk Jul 14, 2017
766eabc
Update README
kazk Jul 17, 2017
58d88be
[OCaml] Prepend LF to output commands
kazk Jul 18, 2017
3150cef
[Nim] Remove boilerplate
kazk Jul 19, 2017
fc8b6fe
Merge pull request #467 from kazk/doc/update-readme
jhoffner Jul 19, 2017
fc97d47
Add R support
kazk Jul 18, 2017
44d104f
[Go] Copy only necessary files
kazk Jul 19, 2017
596bac0
[Lua] Copy only necessary files
kazk Jul 19, 2017
59189da
[Nim] Copy only necessary files
kazk Jul 19, 2017
8cce6ca
[Swift] Copy only necessary files
kazk Jul 19, 2017
51062cc
[Rust] Copy only necessary files
kazk Jul 19, 2017
fb0f882
[C/C++] Copy only necessary files
kazk Jul 19, 2017
73f4623
[OCaml] Copy only necessary files
kazk Jul 20, 2017
6186575
[Python] Copy only necessary files
kazk Jul 20, 2017
9357714
[Ruby/Shell/SQL] Copy only necessary files
kazk Jul 20, 2017
8a3203c
[ObjC] Copy only necessary files
kazk Jul 20, 2017
5bb5a67
[JS/TS/Coffee] Copy only necessary files
kazk Jul 20, 2017
500e547
[Julia] Copy only necessary files
kazk Jul 20, 2017
b0c4f33
[Haskell] Copy only necessary files
kazk Jul 20, 2017
b8ee0b7
[Dart] Copy only necessary files
kazk Jul 20, 2017
3b08bad
[PHP] Copy only necessary files
kazk Jul 20, 2017
e57becb
[Crystal] Copy only necessary files
kazk Jul 20, 2017
220c7d1
[BF] Copy only necessary files
kazk Jul 20, 2017
be4dd81
[Chapel] Copy only necessary files
kazk Jul 20, 2017
2a95b31
[Java] Copy only necessary files
kazk Jul 20, 2017
c9edd10
[JVM] Copy only necessary files
kazk Jul 20, 2017
7fd9370
[C#/F#] Copy only necessary files
kazk Jul 20, 2017
8a5b026
Unfreeze Erlang/Elixir
kazk Jul 20, 2017
685bcbb
[R] Copy only necessary files
kazk Jul 20, 2017
ca83794
Merge pull request #473 from kazk/fix/erlang
jhoffner Jul 24, 2017
b1b8eb9
Merge pull request #472 from kazk/cleanup-images
jhoffner Jul 24, 2017
e05c99b
Merge branch 'master' into feature/R
jhoffner Jul 24, 2017
9834554
Merge pull request #470 from kazk/nim/remove-boilerplate
jhoffner Jul 24, 2017
3c8db37
Merge pull request #468 from kazk/fix/LF/ocaml
jhoffner Jul 24, 2017
6d90a54
Merge pull request #469 from kazk/feature/R
jhoffner Jul 25, 2017
395fd7b
[TypeScript] Make targets configurable
kazk Jul 26, 2017
2f85646
Make Elixir independent
kazk Jul 22, 2017
7d87188
Add Erlang support
kazk Jul 24, 2017
a1227f7
Rewrite rust runner
kazk Jul 17, 2017
851797f
Fix OCaml
kazk Jul 31, 2017
4890cce
Download AngularJS files from code.angularjs.org
kazk Aug 3, 2017
76b6123
Merge pull request #486 from kazk/download-angular
jhoffner Aug 5, 2017
44479ad
Merge pull request #483 from kazk/fix/ocaml
jhoffner Aug 5, 2017
ddd645c
Merge pull request #478 from kazk/feature/erlang-otp20
jhoffner Aug 5, 2017
5fa0aaf
Merge pull request #466 from kazk/feature/rust-cargo
jhoffner Aug 5, 2017
2612516
Merge pull request #476 from kazk/feature/ts-target
jhoffner Aug 5, 2017
5cfafdd
Adds PowerShell language support
PowerSchill Jul 24, 2017
68960aa
Adds example tests for PowerShell
PowerSchill Jul 25, 2017
6a3917a
Fix PowerShell
kazk Jul 29, 2017
bd1447f
stdout
neomatrixcode Aug 7, 2017
e751c21
Hide props from output
jhoffner Aug 9, 2017
70cf00d
Java now supports proper DESCRIBE/IT with total COMPLETEDIN time
jhoffner Aug 9, 2017
c749dff
Merge pull request #491 from codeneomatrix/master
jhoffner Aug 10, 2017
4b6dc6a
Merge pull request #479 from kazk/feature/powershell
jhoffner Aug 10, 2017
7f16f11
Merge pull request #492 from Codewars/task/hide_props
jhoffner Aug 10, 2017
8ac2d3d
added ms to Java COMPLETEDIN output
jhoffner Aug 10, 2017
90e681d
Merge pull request #493 from Codewars/task/java_completed_in
jhoffner Aug 10, 2017
3bebc77
Add Kotlin support
kazk Aug 6, 2017
00f466b
Add Groovy support
kazk Aug 6, 2017
a0ce86a
Add Scala support
kazk Aug 6, 2017
a6ce45f
Fix contaminated builds
kazk Aug 7, 2017
7ee1f03
Remove Kotlin/Scala installations from jvm-runner
kazk Aug 7, 2017
8d5fad5
Reduce memory usage and simplify
kazk Aug 10, 2017
d4ab982
Add Groovy/Kotlin/Scala documentation
kazk Aug 10, 2017
9153609
Add tests and examples for Spock
kazk Aug 10, 2017
003f662
Add JUnit tests and examples for Scala
kazk Aug 11, 2017
31675ac
Add algorithms example for KotlinTest
kazk Aug 11, 2017
ba3084d
Remove R installation from alt-runner
kazk Aug 11, 2017
9bc7f6b
Merge pull request #497 from kazk/remove-r
jhoffner Aug 11, 2017
ef872ab
Add typings/ back
kazk Aug 11, 2017
b981226
[Rust] Allow `non_snake_case`
kazk Aug 13, 2017
097446d
Lock mongoose version to 4.10.x
kazk Aug 14, 2017
787b987
Merge pull request #500 from kazk/fix/mongoose
jhoffner Aug 14, 2017
d4dd436
Merge pull request #498 from kazk/fix/typings
jhoffner Aug 14, 2017
c6606d7
[SQL] Silence Sequel deprecation warning
kazk Aug 16, 2017
eae4102
[JS] Prepend LF to output commands (cw-2)
kazk Aug 16, 2017
3d96143
[JS/TS] Prepend LF to output commands (mocha)
kazk Aug 16, 2017
c161efc
Merge pull request #501 from kazk/fix/sql-deprecation-warning
jhoffner Aug 16, 2017
2be2cf0
Merge pull request #499 from kazk/fix/rust-warning-non_snake_case
jhoffner Aug 17, 2017
d5c89bb
Upgrade Kotlin to 1.1.4
kazk Aug 18, 2017
49b8332
Merge pull request #502 from kazk/fix/LF/javascript
jhoffner Aug 19, 2017
16e81aa
Merge pull request #490 from kazk/feature/gradle
jhoffner Aug 19, 2017
b4b2ef1
Reduce `util.codeWriteSync` usage
kazk Aug 19, 2017
706eaeb
Remove lib/copydir.js
kazk Aug 19, 2017
9bb5db3
Remove `util.exec`
kazk Aug 19, 2017
c4b1fc3
Split lib/util.js
kazk Aug 20, 2017
02e037c
Remove mkdirParentSync
kazk Aug 20, 2017
9b3759e
Remove unused parameter from writeFileSync
kazk Aug 20, 2017
72e1d00
Add "use strict" and improve consistency
kazk Aug 20, 2017
f191abf
Remove `shovel.CompileError`
kazk Aug 20, 2017
329dbd1
Throw Error instead of strings
kazk Aug 20, 2017
40e4c80
Split test/runners/javascript_spec.js
kazk Aug 20, 2017
3789cbb
Make csharp_spec.js readable
kazk Aug 20, 2017
15bf602
Rename lib/options.js
kazk Aug 20, 2017
0e2927f
Call track() when requiring 'temp'
kazk Aug 20, 2017
46383f4
Refactor runners
kazk Aug 20, 2017
9d39792
Move JavaScript runner
kazk Aug 21, 2017
7e7e433
Split JavaScript runner
kazk Aug 21, 2017
afe5dde
Move Ruby runner
kazk Aug 21, 2017
2ec1703
Split Ruby runner
kazk Aug 21, 2017
ac906da
[Swift] Fix invalid reference `test.framework`
kazk Aug 21, 2017
3e7e830
Merge pull request #507 from kazk/refactor-runners
jhoffner Aug 25, 2017
5d2e3c4
Add Solidity runner
kazk Aug 22, 2017
8d796e6
- added ethereum and enzyme packages to node
jhoffner Aug 27, 2017
49a7530
Merge branch 'master' of https://github.com/Codewars/codewars-runner …
jhoffner Aug 27, 2017
3de2823
updated ruby from 2.3.0 to 2.3.3
jhoffner Aug 28, 2017
55a6192
Merge pull request #512 from kazk/feature/solidity
jhoffner Aug 29, 2017
c0c5dc2
Merge branch 'master' of https://github.com/Codewars/codewars-runner …
jhoffner Aug 29, 2017
818d8f7
Replace listen.js
kazk Aug 29, 2017
8075db6
Merge pull request #515 from kazk/replace-listen
jhoffner Aug 29, 2017
5b13fdf
reverted to ruby 2.3.0 since there are build errors with latest versi…
jhoffner Aug 29, 2017
55d1164
Ethereum for Node
jhoffner Aug 30, 2017
e10cc22
uncommented out the test cases
jhoffner Aug 30, 2017
baf67fd
jslint fixes
jhoffner Aug 30, 2017
103ee20
Merge branch 'develop' of https://github.com/Codewars/codewars-runner…
jhoffner Aug 30, 2017
ba95fc3
- Ethereum specs no longer timeout
jhoffner Aug 30, 2017
192029f
Merge branch 'develop' of https://github.com/Codewars/codewars-runner…
jhoffner Aug 30, 2017
54d6805
Added zeppelin support, a critical library to building contracts
jhoffner Aug 31, 2017
a907aab
Merge pull request #516 from jhoffner/8-17/ethereum
jhoffner Aug 31, 2017
8dbafed
Merge pull request #517 from jhoffner/8-17/solidity
jhoffner Aug 31, 2017
3b263b9
Merge pull request #518 from Codewars/develop
jhoffner Aug 31, 2017
de8c166
new timeout for karma based tests are 20s
jhoffner Aug 31, 2017
40f9c1c
Merge pull request #519 from jhoffner/8-17/karma_timeout
jhoffner Aug 31, 2017
0963805
Refactor objc.docker
kazk Aug 31, 2017
8ba49a6
Gradle Optimization Improvements
jhoffner Sep 1, 2017
146a1d6
Spec fixes
jhoffner Sep 1, 2017
59aa888
clean no longer expects done
jhoffner Sep 2, 2017
51d8c93
Merge pull request #522 from jhoffner/8-17/gradle_optimizations
jhoffner Sep 2, 2017
aeb1d5d
Merge pull request #521 from kazk/refactor-image-objc
jhoffner Sep 2, 2017
cbbe921
Fix to enable running TS/Karma with a version
OverZealous Sep 5, 2017
1c71c58
Merge pull request #525 from OverZealous/bug/cannot_run_typescript_ka…
jhoffner Sep 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ node_modules/*
docker/*
.git/
**/.DS_Store
frameworks/java/.gradle
frameworks/java/4.0
frameworks/java/build
frameworks/java/buildOutputCleanup
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
frameworks/javascript/angular/
frameworks/java
frameworks/solidity/truffle
4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@ rules:
no-unused-vars:
- error
- args: none
no-useless-escape:
- off
no-regex-spaces:
- off
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ TestFixture.class
TestFixture.java
frameworks/java/CwRunListener.class
frameworks/java/CwTestRunner.class
frameworks/java/prewarm.status
.DS_Store
*~
target/*
Expand All @@ -22,3 +23,9 @@ Dockerfile
*.hi
\#*
frameworks/csharp/extra
frameworks/java/.gradle
frameworks/java/4.0
frameworks/java/build
frameworks/java/buildOutputCleanup
frameworks/gradle/.gradle
frameworks/gradle/build
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
- "6"

install:
- npm install -g eslint
- npm install -g eslint@3.19.0

services:
- docker
Expand All @@ -28,12 +28,27 @@ env:
- TEST_IMG=dart
- TEST_IMG=crystal
- TEST_IMG=ocaml
# - TEST_IMG=swift
- TEST_IMG=swift
- TEST_IMG=haskell
- TEST_IMG=objc
- TEST_IMG=go
- TEST_IMG=lua
- TEST_IMG=java
- TEST_IMG=esolangs
- TEST_IMG=chapel
- TEST_IMG=nim
- TEST_IMG=r
- TEST_IMG=erlang
- TEST_IMG=elixir
- TEST_IMG=powershell
- TEST_IMG=gradle
- TEST_IMG=solidity

script:
- eslint '**/*.js'
- make $TEST_IMG
- cp docker/${TEST_IMG}.docker ./Dockerfile
- if docker pull codewars/${TEST_IMG}-runner; then
docker build --cache-from codewars/${TEST_IMG}-runner -t codewars/${TEST_IMG}-runner .;
else
docker build -t codewars/${TEST_IMG}-runner .;
fi
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
HOSTNAME=codewars

# Building erlang images have been suspended (frozen) until they are able to be repaired
CONTAINERS=node dotnet jvm python ruby alt rust julia systems dart crystal ocaml swift haskell objc go lua

# recent containers should be updated when adding or modifying a language, so that
# the travis build process will test it. The process cant test all languages
# without timing out so this is required to get passed that issue.
RECENT_CONTAINERS=node
CONTAINERS=node dotnet jvm java python ruby alt rust julia systems dart crystal ocaml swift haskell objc go lua esolangs chapel nim r erlang elixir powershell gradle solidity

ALL_CONTAINERS=${CONTAINERS} base

Expand Down Expand Up @@ -44,6 +38,7 @@ push:
docker push codewars/python-runner
docker push codewars/dotnet-runner
docker push codewars/jvm-runner
docker push codewars/java-runner
docker push codewars/haskell-runner
docker push codewars/systems-runner
docker push codewars/erlang-runner
Expand All @@ -62,6 +57,7 @@ pull:
docker pull codewars/python-runner
docker pull codewars/dotnet-runner
docker pull codewars/jvm-runner
docker pull codewars/java-runner
docker pull codewars/haskell-runner
docker pull codewars/systems-runner
docker pull codewars/erlang-runner
Expand Down
117 changes: 62 additions & 55 deletions README.md

Large diffs are not rendered by default.

131 changes: 122 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ services:
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./frameworks/javascript:/runner/frameworks/javascript
- ./test:/runner/test
- ./tsconfig.json:/runner/tsconfig.json

entrypoint: ''
user: root
command: bash

solidity-runner:
image: codewars/solidity-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks/solidity:/runner/frameworks/solidity
- ./test:/runner/test

entrypoint: ''
user: root
command: bash

jvm-runner:
image: codewars/jvm-runner
volumes:
Expand All @@ -28,6 +40,26 @@ services:
entrypoint: ''
command: bash

java-runner:
image: codewars/java-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: ''
command: bash

gradle-runner:
image: codewars/gradle-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: ''
command: bash

ruby-runner:
image: codewars/ruby-runner
volumes:
Expand Down Expand Up @@ -181,16 +213,47 @@ services:
entrypoint: ''
command: bash

# LANGUAGE SPECIFIC HELPERS
javascript:
image: codewars/node-runner
chapel-runner:
image: codewars/chapel-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: ''
command: bash

nim-runner:
image: codewars/nim-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: ''
command: bash

esolangs-runner:
image: codewars/esolangs-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'node run -l javascript'
entrypoint: ''
command: bash

r-runner:
image: codewars/r-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: ''
command: bash

# LANGUAGE SPECIFIC HELPERS
javascript_test:
image: codewars/node-runner
environment:
Expand All @@ -200,7 +263,7 @@ services:
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/javascript_spec.js'
entrypoint: 'mocha -t 5000 --recursive test/runners/javascript/'

coffeescript:
image: codewars/node-runner
Expand Down Expand Up @@ -243,7 +306,7 @@ services:
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/typescript_spec.js'
entrypoint: 'mocha -t 10000 test/runners/typescript_spec.js'

python:
image: codewars/python-runner
Expand Down Expand Up @@ -355,15 +418,15 @@ services:
entrypoint: 'node run -l java'

java_test:
image: codewars/jvm-runner
image: codewars/java-runner
environment:
- NODE_ENV=test
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/java_spec.js'
entrypoint: 'mocha -t 15000 test/runners/java_spec.js'

clojure:
image: codewars/jvm-runner
Expand Down Expand Up @@ -666,3 +729,53 @@ services:
- ./test:/runner/test
entrypoint: ''
entrypoint: 'mocha -t 5000 test/runners/go_spec.js'

nim:
image: codewars/nim-runner
volumes:
- ./lib:/runner/lib
- ./frameworks:/runner/frameworks
entrypoint: 'node run -l nim'

nim_test:
image: codewars/nim-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/nim_spec.js'

r:
image: codewars/r-runner
volumes:
- ./lib:/runner/lib
- ./frameworks:/runner/frameworks
entrypoint: 'node run -l r'

r_test:
image: codewars/r-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/r_spec.js'

powershell-runner:
image: codewars/powershell-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'powershell'

powershell_test:
image: codewars/powershell-runner
volumes:
- ./lib:/runner/lib
- ./examples:/runner/examples
- ./frameworks:/runner/frameworks
- ./test:/runner/test
entrypoint: 'mocha -t 5000 test/runners/powershell_spec.js'
35 changes: 17 additions & 18 deletions docker/alt.docker
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,28 @@ RUN curl -fsSL https://phar.phpunit.de/phpunit-5.7.phar -o phpunit.phar \
#RUN apt-add-repository ppa:swi-prolog/stable && apt-get update
#RUN apt-get install -y swi-prolog

# Install GNU R
RUN apt-get install -y r-base

# add the package json first to a tmp directory and build, copy over so that we dont rebuild every time
ADD package.json /tmp/package.json
RUN cd /tmp && npm install --production
RUN mkdir -p /runner && cp -a /tmp/node_modules /runner

# ADD cli-runner and install node deps
ADD . /runner
RUN ln -s /home/codewarrior /workspace
ENV NPM_CONFIG_LOGLEVEL warn

WORKDIR /runner
COPY package.json package.json
RUN npm install --production
RUN ln -s /home/codewarrior /workspace

# Run the test suite to make sure this thing works
COPY *.js ./
COPY lib/*.js lib/
COPY lib/*.sh lib/
COPY lib/utils lib/utils
COPY lib/runners/php.js lib/runners/
COPY examples/php.yml examples/
COPY frameworks/php frameworks/php
COPY test/runner.js test/
COPY test/runners/php_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
# Set environment variables
ENV USER codewarrior
ENV HOME /home/codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 3000 test/runners/php_spec.js

#timeout is a fallback in case an error with node
#prevents it from exiting properly
ENTRYPOINT ["timeout", "15", "node"]
ENTRYPOINT ["./entrypoint.sh"]
45 changes: 45 additions & 0 deletions docker/chapel.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM codewars/base-runner

# Set environment variables
ENV CHPL_VERSION 1.15.0
ENV CHPL_HOME /usr/local/chapel-${CHPL_VERSION}

# Download and build Chapel
RUN mkdir $CHPL_HOME \
&& apt-get update && apt-get install -y curl \
&& curl -sSL "https://github.com/chapel-lang/chapel/releases/download/${CHPL_VERSION}/chapel-${CHPL_VERSION}.tar.gz" -o chapel.tar.gz \
&& tar -xzf chapel.tar.gz -C /usr/local \
&& rm -f chapel.tar.gz \
&& cd $CHPL_HOME \
&& make \
&& cd .. \
&& $CHPL_HOME/util/printchplenv

ENV CHPL_HOST_PLATFORM=linux64
ENV PATH="$CHPL_HOME"/bin/$CHPL_HOST_PLATFORM:"$CHPL_HOME"/util:"$PATH"

RUN ln -s /home/codewarrior /workspace
ENV NPM_CONFIG_LOGLEVEL warn

WORKDIR /runner
COPY package.json package.json
RUN npm install --production

COPY *.js ./
COPY lib/*.js lib/
COPY lib/*.sh lib/
COPY lib/utils lib/utils
COPY lib/runners/chapel.js lib/runners/
COPY examples/chapel.yml examples/
COPY frameworks/chapel frameworks/chapel
COPY test/runner.js test/
COPY test/runners/chapel_spec.js test/runners/

COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh

USER codewarrior
ENV USER=codewarrior HOME=/home/codewarrior
RUN mocha -t 10000 test/runners/chapel_spec.js

ENTRYPOINT ["./entrypoint.sh"]
Loading