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
@@ -1,26 +1,28 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | #installation script for cafe-grader, for ubuntu 16.04 |
|
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 | |
|
16 | 18 | echo "Fetching web interface" |
|
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 | |
|
24 | 26 | cp web/config/application.rb.SAMPLE web/config/application.rb |
|
25 | 27 | cp web/config/initializers/cafe_grader_config.rb.SAMPLE web/config/initializers/cafe_grader_config.rb |
|
26 | 28 | |
@@ -102,14 +104,15 | |||
|
102 | 104 | echo "Object.instance_eval{remove_const :GRADER_ROOT_DIR}" >> config/initializers/cafe_grader_config.rb |
|
103 | 105 | echo "Object.instance_eval{remove_const :GRADING_RESULT_DIR}" >> config/initializers/cafe_grader_config.rb |
|
104 | 106 | echo "GRADER_ROOT_DIR = '$CAFE_PATH/judge'" >> config/initializers/cafe_grader_config.rb |
|
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 | |
|
113 | 116 | rake db:migrate |
|
114 | 117 | rake db:seed |
|
115 | 118 | |
@@ -133,13 +136,13 | |||
|
133 | 136 | echo "Fetching grader" |
|
134 | 137 | |
|
135 | 138 | cd .. |
|
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 |
|
143 | 146 | mkdir result |
|
144 | 147 | mkdir log |
|
145 | 148 |
You need to be logged in to leave comments.
Login now