https://github.com/StoDevX/stograde/pull/174 – add a new version of the SD server
https://github.com/StoDevX/stograde/pull/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 adding `spec_version: 3` to the spec. This may make specs longer, but makes them easier to understand for those new to creating specs.
Example usage:
yaml
---
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
yaml
---
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