Description:
update install script
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r258:c308d2333eab - - 1 file changed: 9 inserted, 6 deleted
@@ -4,12 +4,14 | |||
|
4 | 4 | |
|
5 | 5 | echo "This script will install and configure Cafe grader." |
|
6 | 6 | |
|
7 |
- RUBY_VERSION=2. |
|
|
7 | + RUBY_VERSION=2.6.3 | |
|
8 | + RUBY_GEMSET=grader | |
|
8 | 9 | |
|
9 | 10 | echo "Installing Ruby $RUBY_VERSION in RVM" |
|
10 | 11 | |
|
11 | 12 | rvm install $RUBY_VERSION |
|
12 | - rvm use $RUBY_VERSION | |
|
13 | + | |
|
14 | + rvm use $RUBY_VERSION@$RUBY_GEMSET | |
|
13 | 15 | |
|
14 | 16 | echo "Fetching Cafe Grader from Git repositories" |
|
15 | 17 | |
@@ -17,7 +19,7 | |||
|
17 | 19 | |
|
18 | 20 | mkdir cafe_grader |
|
19 | 21 | cd cafe_grader |
|
20 |
- g |
|
|
22 | + hg clone git+ssh://git@github.com/nattee/cafe-grader-web.git web | |
|
21 | 23 | |
|
22 | 24 | echo "Configuring rails app" |
|
23 | 25 | |
@@ -105,8 +107,9 | |||
|
105 | 107 | echo "GRADING_RESULT_DIR = '$CAFE_PATH/judge/result'" >> config/initializers/cafe_grader_config.rb |
|
106 | 108 | |
|
107 | 109 | echo "Installing required gems" |
|
108 | - gem install bundler | |
|
109 | - bundle install | |
|
110 | + #gem install bundler | |
|
111 | + #bundle install | |
|
112 | + bundle | |
|
110 | 113 | |
|
111 | 114 | echo "Running rake tasks to initialize database" |
|
112 | 115 | |
@@ -136,7 +139,7 | |||
|
136 | 139 | |
|
137 | 140 | mkdir judge |
|
138 | 141 | cd judge |
|
139 |
- g |
|
|
142 | + hg clone -q git+ssh://git@github.com/nattee/cafe-grader-judge-scripts.git scripts | |
|
140 | 143 | mkdir raw |
|
141 | 144 | mkdir ev-exam |
|
142 | 145 | mkdir ev |
You need to be logged in to leave comments.
Login now