Skip to content

v1.0.0 Assignment Submission using autolab CLI

Prasad Talasila edited this page Apr 23, 2018 · 1 revision

Please follow the instructions given below to submit labs to autolab software.

  1. Open a bash shell terminal in Ubuntu 16.04 x86_64 operating system.
  2. Install node.js and npm packages using the tutorial to install node v6.x. The node installation also installs a matching npm tool.
  3. Install autolabcli software using the command,
    $npm install -g @autolabjs/autolabcli
  4. Configure git with user details.
    $ git config --global user.name "John Doe"
    $ git config --global user.email [email protected]
    You only have to enter the user information once per system.'
  5. Create a lab directory matching the lab name. For example, if you are doing lab1, then create a directory named lab1.
    $mkdir -p lab1/java
  6. Enter the directory.
    $cd lab1
  7. Initialize the directory as git repository and login to autolab system.
    $autolab init
    you will be asked to enter your GitLab username and password. These credentials will be securely stored in the local computer and will be valid for 120 minutes.
  8. Create a git repository with lab name.
    $autolab git create
    you will be asked for the name of the repository on the GitLab. Please make sure that the name entered here matches with your directory name and with the lab name on https://autolab.bits-goa.ac.in:9000.
  9. Add you code files from BlueJ/Eclipse into the lab1/java directory. Please follow proper directory structure for code submissions. All java code files must follow appropriate package structure as well.
  10. Commit changes to the repository.
    $autolab git push
    you will be prompted for a commit message. For the benefit of your future self, give a meaningful commit message.
  11. The default submission language is java. If you wish, you can change programming language choice of an eval using the script
    $ autolab prefs changelang
    
    
  12. Submit for evaluation
    $autolab submit
  13. Erase your credentials from local computer.
    $autolab exit