Code Monkey home page Code Monkey logo

posd2020f_hw_environment's Introduction

Environment Setting

Important Links

facebook qrcode

IDE Recommend

Category

  1. Computer Environment Setting
  2. Homework Upload Tutorial

Computer Environment Setting

Windows 10

1. Open developer mode on window


2. Enable Linux version Windows sub system.


3. Install Ubuntu on Microsoft Store and activate it.

4. Now you can open bash shell in cmd.

5. Run the following command under bash shell.

Reference: https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/

sudo apt-get update
sudo apt-get install g++
sudo apt-get install make
sudo apt-get install libgtest-dev
sudo apt-get install cmake
cd /usr/src/gtest 
sudo cmake CMakeLists.txt 
sudo make 
cd lib
sudo cp *.a /usr/lib

MacOS

1. Download GoogleTest and run the following command.

Reference: https://gist.github.com/massenz/41bb2c8375294f4d9927

brew install cmake
cd ~/Downloads/googletest-release-1.8.0/googletest
mkdir build
cd build
cmake –Dgtest_build_samples=ON –Dgtest_build_tests=ON ~/Downloads/googletest-release-1.8.0/googletest
make
sudo mkdir /usr/local/Cellar/gtest
sudo cp ~/Downloads/googletest-release-1.8.0/googletest/build/libgtest.a /usr/local/Cellar/gtest/
sudo ln –snf /usr/local/Cellar/gtest/libgtest.a /usr/local/lib/libgtest.a
sudo cp –r ~/Downloads/googletest-release-1.8.0/googletest/include /usr/local/Cellar/gtest/
ln –snf /usr/local/Cellar/gtest/include/gtest /usr/local/include/gtest

Homework Upload Tutorial

First Setting(Only first time needs to do setting)

  1. Make the project directory on your pc.

    mkdir

  2. Open the terminal and enter the following command.

    Get in to project directory and initialize as git project.

$ cd /path/to/your/project
$ git init

git init

  1. Go to Gitlab to find your own project link.
    Suggestion: Use https link instead of ssh link.

    repoLink

  2. Link your git project to Gitlab repository.

    Enter following command:

$ git remote add origin ${YOUR_URL}

** Replace ${YOUR_URL} with the gitlab project link from step 3.

Add origin

Upload Homework

  1. Look up the current status of git repository.

    Enter following command:
$ git status

Git status

  1. Add the new/modified files to "Changes to be committed" queue:

    Enter following command:
$ git add .

Git Add

If the file status is "deleted", you'll need rm command:

$ git rm ${FILE_NAME}

Git rm

  1. Check the current status again.
$ git status

Git status 2

  1. If the status in step 3 is correct, you can commit the current changes to git history.

    By following command:
$ git commit -m "${YOUR_COMMIT_MESSAGE}"

${YOUR_COMMIT_MESSAGE} is the message to describe the current changes you commit.

Git Commit

4.5 If it's your first time to commit in your device, system will require you to provide your personal info.

Enter the following commands to fill in infos.

$ git config --global user.email ${YOUR_EMAIL}
$ git config --global user.name ${YOUR_NAME}

Then you can enter the commit message in step 4 again.

  1. Push your local commits to Gitlab server.

    Enter the following command:
$ git push -u origin master

And enter your username & password.

** The password won't show when you enter.

Git push

Check homework status

  1. Go to Gitlab to check your upload status.

    Gitlab status

  2. Go to Jenkins to check your homework status.

    The username and password are default in your student ID
    For example, username: 106820000, password: 106820000
    Please login and modified to your own password

  • Projects to check:
    • Check ${COURSE}_${STUDENT_ID}_HW, for example: psod2020f_106820000_HW.
      - This project is for executing student's own unit tests.
    • Check ${COURSE}_${STUDENT_ID}_HW_TA, for example: psod2020f_106820000_HW_TA.
      - This project is for executing TA provided unit tests.
  • Project status:
    • Blue: all unit tests passed.
    • Red: some tests failed, or compile failed.

      Jenkins Status

If you click blue/red light, you can see the execution console to check execution status.

Jenkins Console

posd2020f_hw_environment's People

Contributors

erickmy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.