-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yml
125 lines (125 loc) · 3.99 KB
/
setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
python:
base_dir: &python-base_dir src/main/python
file_pattern: &python-file_pattern AoC{year}_{day:0>2}
file_ext: &python-file_ext .py
java:
base_dir: &java-base_dir src/main/java
file_pattern: &java-file_pattern AoC{year}_{day:0>2}
file_ext: &java-file_ext .java
bash:
base_dir: &bash-base_dir src/main/bash
file_pattern: &bash-file_pattern AoC{year}_{day:0>2}
file_ext: &bash-file_ext .sh
cpp:
base_dir: &cpp-base_dir src/main/cpp
file_pattern: &cpp-file_pattern AoC{year}_{day:0>2}
file_ext: &cpp-file_ext .cpp
julia:
base_dir: &julia-base_dir src/main/julia
file_pattern: &julia-file_pattern AoC{year}_{day:0>2}
file_ext: &julia-file_ext .jl
rust:
base_dir: &rust-base_dir src/main/rust
file_pattern: &rust-file_pattern AoC{year}_{day:0>2}
file_ext: &rust-file_ext .rs
implementation_tables:
rows:
- language: python3
base_dir: *python-base_dir
pattern: *python-file_pattern
ext: *python-file_ext
- language: java
base_dir: *java-base_dir
pattern: *java-file_pattern
ext: *java-file_ext
- language: bash
base_dir: *bash-base_dir
pattern: *bash-file_pattern
ext: *bash-file_ext
- language: c++
base_dir: *cpp-base_dir
pattern: '{year}/{day:0>2}/AoC{year}_{day:0>2}'
ext: *cpp-file_ext
- language: julia
base_dir: *julia-base_dir
pattern: *julia-file_pattern
ext: *julia-file_ext
- language: rust
base_dir: *rust-base_dir
pattern: 'AoC{year}_{day:0>2}/src/main'
ext: *rust-file_ext
runner:
root: ${PWD}
default_timeout: 60
scratch_file: input.txt
plugins:
bash:
command: bash
base_dir: *bash-base_dir
day_format: *bash-file_pattern
ext: *bash-file_ext
skip:
- year: 2015
day: 4
part: 1
- year: 2015
day: 4
part: 2
- year: 2017
day: 5
part: 2
py:
day_format: *python-file_pattern
java:
command: java
classpath:
- ${CLASSPATH}
- ${PWD}/build/java/classes
class: com.github.pareronia.aocd.Runner
server:
command: java
classpath:
- ${CLASSPATH}
- ${PWD}/build/java/classes
class: com.github.pareronia.aocd.RunServer
host: localhost
port: 5555
cpp:
base_dir: build/cpp
day_format: *cpp-file_pattern
julia:
command: julia
options: -O3
base_dir: *julia-base_dir
day_format: *julia-file_pattern
ext: *julia-file_ext
server:
command:
- julia
- -O3
- --
- src/main/julia/Runner.jl
host: localhost
port: 5556
rust:
base_dir: src/main/rust
day_format: target/release/AoC{year}_{day:0>2}
listeners:
junitxml:
filepath: build/junit.xml
generator:
languages:
- language: python
templates:
- source: src/main/resources/generator/template.py
destination: src/main/python/AoC{year}_{day:0>2}.py
- language: java
templates:
- source: src/main/resources/generator/template.java
destination: src/main/java/AoC{year}_{day:0>2}.java
- language: rust
templates:
- source: src/main/resources/generator/template.rs
destination: src/main/rust/AoC{year}_{day:0>2}/src/main.rs
- source: src/main/resources/generator/Cargo.toml
destination: src/main/rust/AoC{year}_{day:0>2}/Cargo.toml