Skip to content

Commit 529036e

Browse files
Merge pull request #243 from mishaschwartz/v1.9.0
v1.9.0
2 parents 5106d6d + 7edbbab commit 529036e

File tree

148 files changed

+3540
-2663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+3540
-2663
lines changed

.dockerfiles/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ARG UBUNTU_VERSION
2+
3+
FROM ubuntu:$UBUNTU_VERSION
4+
5+
ARG LOGIN_USER
6+
7+
RUN apt-get update && \
8+
apt-get -y install sudo
9+
10+
# Create a directory for the app code (keep the name generic)
11+
RUN mkdir -p /app
12+
13+
RUN useradd -ms /bin/bash $LOGIN_USER && \
14+
usermod -aG sudo $LOGIN_USER && \
15+
echo "$LOGIN_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee "/etc/sudoers.d/$LOGIN_USER"
16+
17+
USER $LOGIN_USER
18+
19+
WORKDIR /app

.dockerfiles/docker-config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
workers:
2+
- users:
3+
- name: autotst0
4+
- name: autotst1
5+
- name: autotst2
6+
- name: autotst3
7+
queues:
8+
- student
9+
- single
10+
- batch

.dockerfiles/entrypoint-dev.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
if [ ! -f /.installed ]; then
6+
/app/bin/install.sh -p '3.8' --docker
7+
sudo touch /.installed
8+
fi
9+
10+
exec "$@"

.flake8.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
22
max-line-length = 120
3-
ignore = E266
3+
ignore = E266

.gitignore

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,28 @@ __pycache__
44
.DS_Store
55
.hypothesis/
66
.pytest_cache/
7+
*.egg-info
8+
.eggs
9+
venv
710

11+
# bin
12+
bin/kill_worker_procs
813

914
# server
10-
server/venv
11-
server/workspace
12-
server/bin/kill_worker_procs
13-
markus_config.rb
15+
src/autotester/server/venv
16+
src/autotester/server/workspace
17+
src/autotester/server/bin/kill_worker_procs
1418

1519
# testers
16-
testers/testers/*/specs/.installed
17-
testers/testers/*/specs/install_settings.json
20+
src/autotester/testers/*/specs/.installed
21+
src/autotester/testers/*/specs/install_settings.json
1822

1923
# java
20-
testers/testers/java/lib/.gradle
21-
testers/testers/java/lib/build
24+
src/autotester/testers/java/lib/.gradle
25+
src/autotester/testers/java/lib/build
2226

2327
# racket
24-
testers/testers/racket/**/compiled/
28+
src/autotester/testers/racket/**/compiled/
2529

2630
# haskell
2731
markus_cabal

.hound.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
flake8:
22
enabled: true
33
config_file: .flake8.ini
4-

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ python:
44
- "3.6"
55
- "3.7"
66
- "3.8"
7-
# command to install dependencies
8-
install:
9-
- pip install pytest
10-
- pip install hypothesis
11-
- pip install -r server/bin/requirements.txt
127
# command to run tests
138
script:
14-
- pytest --ignore testers/testers/py/tests
9+
- python setup.py test

Changelog

Lines changed: 0 additions & 10 deletions
This file was deleted.

Changelog.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CHANGELOG
2+
All notable changes to this project will be documented here.
3+
4+
## [unreleased]
5+
6+
## [1.9.0]
7+
- allow tests to write to existing subdirectories but not overwrite existing test script files (#237).
8+
- add ability to create a docker container for the autotester in development mode (#236).
9+
- major reorganization of the structure of this package (#236).
10+
- additional usage options for the server installation script (bin/install.sh).
11+
- testers can/should now be installed using the server installation script instead of individually.
12+
- configuration files now use yaml format.
13+
- configuration file defaults are now included in the source code so the autotester can be run with or without a
14+
user specific configuration file.
15+
- changed the default location for the workspace directory.
16+
17+
## [1.8.1]
18+
_NOTE: This changelog starts from version 1.8.1 (changes prior to this version are not documented)_
19+
### Added
20+
- changelog
21+
- for all changes prior to this version see https://github.com/MarkUsProject/markus-autotesting/pulls?utf8=%E2%9C%93&q=is%3Apr+created%3A%3C2019-12-19+

Layerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ CHECKPOINT
88

99
RUN python3 -m venv /tmp/venv
1010

11-
RUN /tmp/venv/bin/pip install -U pip
12-
COPY server/bin/requirements.txt /tmp/
13-
RUN /tmp/venv/bin/pip install -U pytest hypothesis attrs -r /tmp/requirements.txt
1411
CHECKPOINT
1512

1613
WORKDIR /app
1714
COPY . .
18-
RUN /tmp/venv/bin/pytest --ignore testers/testers/py/tests
15+
RUN /tmp/venv/bin/python setup.py test

0 commit comments

Comments
 (0)