Releases: stograde/stograde
Releases · stograde/stograde
v4.0.0
v3.2.0
v3.0.1
v3.0.0
#174 – add a new version of the SD server
#173:
Allow yaml files to be specified in a new format that improves readability. Instead of using a single array to hold all information for a file or test, split parts into
file
,commands
,options
, like they are in the cached json.
This new format is activated by addingspec_version: 3
to the spec. This may make specs longer, but makes them easier to understand for those new to creating specs.
Example usage:
---
assignment: hw1
compilers:
- &cpp 'g++ --std=c++11 $@ -o $@.exec'
- &server 'g++ --std=c++11 $@ $SERVER'
files:
- [ hello.cpp, *server, web: true ]
- [ hw1_questions.txt ]
- [ Makefile ]
- [ Dog.h ]
- [ Dog.cpp ]
- - tryDog.cpp
- rm -f tryDog tryDog.o Dog.o
- make
tests:
- [ tryDog.cpp, ./tryDog ]
inputs:
- prelude
- postlude
- sd_fun.h
becomes
---
spec_version: 3
assignment: hw1
compilers:
- &cpp 'g++ --std=c++11 $@ -o $@.exec'
- &server 'g++ --std=c++11 $@ $SERVER'
files:
- file: hello.cpp
commands: *server
options:
web: true
- file: hw1_questions.txt
- file: Makefile
- file: Dog.h
- file: Dog.cpp
- file: tryDog.cpp
commands:
- rm -f trydog trydog.o Dog.o
- make
tests:
- file: tryDog.cpp
commands: ./tryDog
inputs:
- prelude
- postlude
- sd_fun.h