Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit b7fa6f5

Browse files
committed
mono on travis, docker for python, and some refactoring
1 parent 0bfd721 commit b7fa6f5

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
- nightly
66

77
install:
8+
- sudo apt-get install mono-devel
89
- pip install .
910
- pip install -r requirements.txt
1011

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ OpenRank is a free and open source alternative for websites like HackerRank, Hac
22

33
Join the disucssion chatroom for this project on Discord : https://discord.gg/c7pU8Rw
44

5-
[![Build Status](https://travis-ci.org/jbuddha/OpenRank.svg?branch=master)](https://travis-ci.org/jbuddha/OpenRank)
5+
6+
[![Build Status](https://travis-ci.org/coderplex/OpenRank.svg?branch=master)](https://travis-ci.org/coderplex/OpenRank)
7+
68

79
## Running :
810

framework/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM openjdk:8-jdk-alpine
2+
3+
MAINTAINER Buddha Jyothiprasad
4+
5+
#RUN apt-get update
6+
7+
#Install all the basic linux tools
8+
RUN apk add --update bash vim bash-completion curl sudo bc
9+
10+
#Install all the languages/compilers we are supporting
11+
RUN apk add --update gcc g++ python python3 py-pip mono ruby npm nodejs golang-go scala
12+
13+
RUN npm install -g underscore request express jade shelljs passport http sys jquery lodash async mocha moment connect validator restify ejs ws co when helmet wrench brain mustache should backbone forever debug && export NODE_PATH=/usr/local/lib/node_modules/
14+
15+
16+

framework/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
default_testcase_array = [default_test_case]
1212

1313

14-
def run(source, source_extension, compile_commands, run_command, test_cases=default_testcase_array):
14+
def run(source, source_extension, compile_commands, run_commands, test_cases=default_testcase_array):
1515
result = []
1616
current_directory = os.getcwd()
1717
temp_dir = uuid.uuid4().hex
@@ -21,7 +21,7 @@ def run(source, source_extension, compile_commands, run_command, test_cases=defa
2121
try:
2222
source_file_name = create_source_file(source, source_extension)
2323
out_compile = compile_source(compile_commands, source_file_name, result)
24-
execute_tests(run_command, test_cases, out_compile, result)
24+
execute_tests(run_commands, test_cases, out_compile, result)
2525
except Exception as e:
2626
out_exception = Output()
2727
result.append(out_exception)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Django==1.11
22
pytest==3.2
3+
docker

0 commit comments

Comments
 (0)