Version 2018-Spring-1.1-Final, Revised 14 March 2018
https://github.com/CS-Worcester-CS-348-SP-2018/ci-exercise
mvn clean compile
mvn test
mvn clean package
java -jar target/CIExercise-0.0.1-SNAPSHOT.jar
https://travis-ci.org/CS-Worcester-CS-348-SP-2018/ci-exercise
Look at the pom.xml
file in the CIExercise
Look at the .travis.yml
file in the CIExercise
Look at the .gitignore
file in the CIExercise
I am intentionally not repeating all of the Git and GitHub commands for you here. You should be getting used to what you need to do. If you cannot remember how do the following steps in order:
- Look at past in-class exercises and homework assignments.
- Ask your classmates for help.
- Ask me for help.
Based on the last digit of your WSU Student ID, edit the appropriate EndsWith
class. For example, my ID ends with 2
, so I edited the EndsWith2.java
file. Look at EndsWith2.java
as an example for what to do.
The test will fail because you have not updated the test file for the class you edited.
Go update the test for the code you just wrote and test again.
Pull recent changes from your classmates
Resolve any conflicts
- Add the change
- Pull any changes that have ocurred since the last pull, and correct merge conflicts
- Commit the change, with a message describing the change.
- Push the change
- Make a pull request to have the change merged into the original repository
- Determine where you want to clone your repository to on your Windows file system
cd /mnt/c/Users/your-login-name
will get you to the top of your home directory tree on Windows (assuming that it is on your C: drive.)- Continue using
cd
andls
to get yourself into whichever directory you determined you want to use. - Once there, clone the repository.
- Issue Maven and Git commands there.
- You can use your preferred editor in Windows to edit files.
- To view hidden files (starting with .) in Bash, type
ls -al
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.