-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.rb
executable file
·34 lines (32 loc) · 966 Bytes
/
test.rb
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
#!/usr/bin/env ruby
require 'json'
puts `docker build -t test .`
my_latex = [
'Course-Simulation-Basics',
'Curriculum-Vitae',
# Commented out until https://github.com/borisveytsman/acmart/issues/505 is resolved.
#'Template-ACM-Article',
'Template-Elsevier-Article',
'Template-Elsevier-CAS-DC',
'Template-IEEE-Computer-Society-Magazines',
'Template-IEEE-Conference-Proceedings',
'Template-LaTeX-achemso',
'Template-LaTeX-CI',
'Template-LaTeX-ERC',
'Template-LaTeX-LMCS',
'Template-LaTeX-LNCS',
'Template-LaTeX-MDPI',
'Template-PhD-Tesi-Giovanni-Ciatto',
]
`sudo rm -rf test`
`mkdir test`
threads = my_latex.map { | repo |
Thread.new {
`git clone --recurse-submodules https://github.com/DanySK/#{repo}.git test/test-#{repo}`
}
}
for thread in threads do
thread.join
end
puts `docker run --rm --workdir="/github/workspace" -v "$(pwd)/test":/github/workspace:rw test`
exit $?.exitstatus