Skip to content

sraleigh62/ci-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Version 2018-Spring-1.0-Final, Revised 12 March 2018

CS-348 01, 02 — Spring 2018

Continuous Integration Exercise

Set up your Repository

Fork the Repository

https://github.com/CS-Worcester-CS-348-SP-2018/ci-exercise

Clone the Repository

Add the original repository as an upstream remote

Trying out Maven

Build with Maven

mvn clean compile

Run JUnit Tests with Maven

mvn test

Build JAR File with Maven and Run

mvn clean package
java -jar target/CIExercise-0.0.1-SNAPSHOT.jar

View Travis CI Builds

https://travis-ci.org/CS-Worcester-CS-348-SP-2018/ci-exercise

Look at Maven Configuration

Look at the pom.xml file in the CIExercise

Look at the Travis Configuration

Look at the .travis.yml file in the CIExercise

Look at the Git Configuration

Look at the .gitignore file in the CIExercise

Modify the CIExercise to Include your Name

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:

  1. Look at past in-class exercises and homework assignments.
  2. Ask your classmates for help.
  3. Ask me for help.

Git Workflow Reminder

  1. Add the change
  2. Pull any changes that have ocurred since the last pull, and correct merge conflicts
  3. Commit the change, with a message describing the change.
  4. Push the change
  5. Make a pull request to have the change merged into the original repository

Create an add-name branch, and switch to that branch

Edit the code

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.

Build the code with Maven

Test the code with Maven

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.

Build JAR File with Maven and Run

Before committing your changes, make sure your repository is up-to-date with upstream

Pull recent changes from your classmates

Resolve any conflicts

Add your code and commit your changes

Push changes

Make a pull request to have your change merged into the original repository

Go to the original repository and approve the pull request

Check Travis

Copyright and License

© 2018 Karl R. Wurst, Worcester State University

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages