Skip to content

Commit

Permalink
Created script to automatically setup and create autograder.zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
adsnaider committed Mar 7, 2020
1 parent f3931eb commit 4e851d6
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 3 deletions.
38 changes: 38 additions & 0 deletions autograder/deploy_key
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEAuvNjrAOG6H5IGL4AAxyYcu8c3oxTT61rltnOaWyXQwPMwnO3DyU7
CdpgXXfT4cT1GooSVRdNAl4arB9b+28EAQB8ZQD8N/s9J7g74M+m4RlUkOgosC71CVobXj
SjUgIrTwWtdr4M1skk+XcPB76+0pHQZ13qYAXZoVzyTVHLWgYdiuPRRCT5+KGVEt1Owdd+
y7oUuK8290cvmadeFqWvQJJ5FH1Ib5cul0q5qtjjIjTOMCJAqzygxE994F2OHelr+ZnKi+
Aaky+TaHJEuaaLUEXI8HWGvcRWd65fb0kTKSJJTr1g5mdPRJPY00ebuIjbHfOafEehTlq0
LV9lEVG/4Eyy/gQXXcVu4rf2IcqfdjLmSq3S10YHJUE8rJx1K59rQkkQV3ETNZyCA5gcQL
BqUgGMpT0Q1wS32TMb62a8C11VglGLx/PW2EfE1Lp3Sa1c0PhxM79tfjGjaHF4Z3W531SG
SBclenjgVXputQfrLWeXkAyluJIf6hzbHLD36G8tAAAFgOvoJTnr6CU5AAAAB3NzaC1yc2
EAAAGBALrzY6wDhuh+SBi+AAMcmHLvHN6MU0+ta5bZzmlsl0MDzMJztw8lOwnaYF130+HE
9RqKElUXTQJeGqwfW/tvBAEAfGUA/Df7PSe4O+DPpuEZVJDoKLAu9QlaG140o1ICK08FrX
a+DNbJJPl3Dwe+vtKR0Gdd6mAF2aFc8k1Ry1oGHYrj0UQk+fihlRLdTsHXfsu6FLivN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vi/
hVYbmzEwGcKEf6n2tqxpHEbAgurt+vhEQmceOCyziExSEpgwAAAMEA7/jCoCaH01ocEuVG
fECh8TvCOvhNW+9uCz2jZm/eXqVQ/pabya76QEwx2Ilesjnn/VFN4hNabZP+Bv1fTRvCOy
zqEcAjc3sRr/NqE7FDh8JvoIeHhmH2eKS/lqdD39vKx8NmpjXWxrpsmC3vitvyn08Hb4co
0/AbpR6qN8OvXtIolN4E6L9s9E3HiQUUKXeAfy29OSzRuWDDBRHAzLI4fOD/d6HWgroH2m
DKQXcEDW4t8tHni54rEi8V1a0t7WHvAAAAwQDHcAgNcNyObiiOQ4IAI9v5mjHE73BjfjiS
Ue975b5+TektYwCVPWB1/f7o07OwgM/fg9Kgp9IJiY2WfJqvdOCyaMM+HNenMtvwufn6J9
ZfmjKUtRN7HMg0zlV+0gcUDcwZEJinVmQ8a3N6pN5kmY9slB9ALAa7q8dgcpUEbuxjG3v4
TazUZRpc7AlwuSYg8GtM1fuRPbGVwr7Z3sa7nLjpMt1zuRlFn5pxkcSuho/3uLUIwnWIjq
FSEg57WTfyLKMAAAALYWRhbUBwb3Atb3M=
-----END OPENSSH PRIVATE KEY-----
1 change: 1 addition & 0 deletions autograder/deploy_key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC682OsA4bofkgYvgADHJhy7xzejFNPrWuW2c5pbJdDA8zCc7cPJTsJ2mBdd9PhxPUaihJVF00CXhqsH1v7bwQBAHxlAPw3+z0nuDvgz6bhGVSQ6CiwLvUJWhteNKNSAitPBa12vgzWyST5dw8Hvr7SkdBnXepgBdmhXPJNUctaBh2K49FEJPn4oZUS3U7B137LuhS4rzb3Ry+Zp14Wpa9AknkUfUhvly6XSrmq2OMiNM4wIkCrPKDET33gXY4d6Wv5mcqL4BqTL5NockS5potQRcjwdYa9xFZ3rl9vSRMpIklOvWDmZ09Ek9jTR5u4iNsd85p8R6FOWrQtX2URUb/gTLL+BBddxW7it/Yhyp92MuZKrdLXRgclQTysnHUrn2tCSRBXcRM1nIIDmBxAsGpSAYylPRDXBLfZMxvrZrwLXVWCUYvH89bYR8TUundJrVzQ+HEzv21+MaNocXhndbnfVIZIFyV6eOBVem61B+stZ5eQDKW4kh/qHNscsPfoby0= adam@pop-os
1 change: 1 addition & 0 deletions autograder/repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]:adsnaider/StarGrade-Test.git
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions configure_autograder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

if [ "$#" -ne 1 ]; then
echo "Usage: $0 Github Address" >&2
echo "Example: $0 [email protected]/foo/bar.git" >&2
exit 1
fi

wget https://github.com/adsnaider/gradescope-integration/archive/master.zip > /dev/null 2>&1
unzip master.zip -d autograder > /dev/null

rm master.zip

cd autograder/gradescope-integration-master/

rm -f deploy_key deploy_key.pub
ssh-keygen -f deploy_key -q -N ""

echo "============================= Deploy Key (pub) ==================================="
cat deploy_key.pub
echo "=========================== End Deploy Key (pub) ================================="
echo "Please copy the above key to the deploy keys section in your github repo."

echo "$1" > repo
echo "Setting repo address as \"$1\""

zip ../../autograder.zip ./* > /dev/null
cd ../../
rm -rf autograder/
1 change: 0 additions & 1 deletion deploy_key

This file was deleted.

1 change: 0 additions & 1 deletion deploy_key.pub

This file was deleted.

1 change: 0 additions & 1 deletion repo

This file was deleted.

0 comments on commit 4e851d6

Please sign in to comment.