-
Notifications
You must be signed in to change notification settings - Fork 10
v1.0.0 User Manual
Chaitanya Mukka edited this page Feb 4, 2019
·
2 revisions
Please follow the instructions given below to submit labs to AutolabJS.
- Open a bash shell terminal in your Linux operating system.
- Install node.js and npm packages using the tutorial to install node v8.x. The node installation also installs a matching npm tool. Please note that the version of nodejs must be 8.0 or above
- Install autolabcli software using the command,
$ npm install -g @autolabjs/autolabcli
- Please make sure the
main server
and thegitlab
host and port are updated according to the current installation of the AutolabJS (defaults toautolab.bits-goa.ac.in:9000
andautolab.bits-goa.ac.in
respectively) by using the following command:$ autolabjs prefs changeserver --type ms $ autolabjs prefs changeserver --type gitlab
- Configure git with user details.
You only have to enter the user information once per system.'
$ git config --global user.name "John Doe" $ git config --global user.email [email protected]
- Create the lab repository in gitlab. The name of the repository must be the same as the lab name of submission. For example, if you are doing lab1, then create a repository named lab1.
- Clone the repository into your local machine.
$ export GIT_SSL_NO_VERIFY=1 $ git clone https://autolab.bits-goa.ac.in/<your_username>/lab1.git
- Enter into the directory.
$ cd lab1
- Login to the autolabcli using your Gitlab username and password.
You can also give your username and password as options as follows -
$ autolabjs init
These credentials will be securely stored in the local computer and will be valid for 120 minutes.$ autolabjs init -u <username> -p <password>
- Create another directory inside lab1 with the name of the language in which you want to make the submission. For example, if you want to make your submission in java, create lab1/java directory. All the java code must go into this directory. Please follow the proper directory structure for code submissions.
- Once your code is ready for submission, move into the lab1 directory and execute the following commands to push your code into Gitlab.
$ git add . $ git commit -m "<Any appropriate message>" $ git push
- Now you can submit the code for evaluation using -
you will be prompted to enter the lab name, submission language, and the commit hash. You can leave the commit hash field blank in order to evaluate your latest commit.
$ autolabjs eval
OR
You can also provide these fields as options as follows -You will get the result of your submission after you have been evaluated.$ autolabjs eval -l <lab_name> --lang <language>
- You can go ahead and make further submissions using the steps as described above, or if you are satisfied with your submission, logout of the autolabcli using -
$ autolabjs exit
- Autolabcli v1.0.0 Docs
- Submission Workflow
- Architecture
- Refactoring Advice
- Feature Development
- Autolabcli Tests
- Events Doc
- Sequence Diagrams
- Testing in Javascript
- Libraries
- Debug Techniques
- Arrow Functions
- Autolabcli v0.1.1 Docs
- References