Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 14 additions & 34 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
version: 2.1
orbs:
node: circleci/[email protected]
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:10.3

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

build-and-test:
executor:
name: node/default
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn test
- node/with-cache:
steps:
- run: npm install
- run: npm test
workflows:
build-and-test:
jobs:
- build-and-test


Binary file added assets/Feature Branch Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/GitHub Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Jobs Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions labreports/LAB_Willnew98.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
Course: Messiah College CIS 411, Spring 2020<br/>
Instructors: [Joel Worrall](https://github.com/tangollama) & [Trevor Bunch](https://github.com/trevordbunch)<br/>
Name: Will Newcomb<br/>
GitHub: [Willnew98](https://github.com/Willnew98)<br/>

# Step 1: Fork this repository
- https://github.com/Willnew98/cis411_lab0
- https://github.com/Willnew98/cis411_lab0/blob/labreport/assets/GitHub%20Diagram.png

# Step 2: Clone your forked repository from the command line
- My GraphQL response from adding myself as an account on the test project
```
{
"data": {
"mutateAccount": {
"id": "9e6928b4-cadf-4d1b-b927-836234b913af",
"name": "Will Newcomb",
"email": "[email protected]"
}
}
}
```

# Step 3: Creating a feature branch
- The output of my git commit log
```
dabceca (origin/master, origin/HEAD, master) Merge pull request #24 from tangollama/circleci
a4096db Create README.md
2f01bf4 Update LAB_INSTRUCTIONS.md
347bd50 Update LAB_INSTRUCTIONS.md
7aaa9f3 Update LAB_INSTRUCTIONS.md
37393ae Bug fixed
1949d2a Update LAB_INSTRUCTIONS.md
d36ad90 Update LAB.md
59ef18a Update LAB_INSTRUCTIONS.md
37be3c8 Update LAB_INSTRUCTIONS.md
97da547 Update LAB.md
0bd6244 (origin/purelab) updated Step 0 title
4562cd8 added npm and node install repreq
255051e adding template
13a09b7 Adding the LAB.md and correcting some instructions.
d2ddea5 Version 0.0.1 of the lab isntructions
ab312fc more progress
62fb0a5 more progress
fe1937b more in the lab instructions
3e807fb first section

```
- The accompanying diagram of what my feature branch precisely and conceptually represents

https://github.com/Willnew98/cis411_lab0/blob/labreport/assets/Feature%20Branch%20Diagram.png


# Step 4: Setup a Continuous Integration configuration
- What is the .circleci/config.yml doing?

- It's building and testing my committed code with the master branch automatically, so I don't keep building the feature branch that might not work with the master.
- What do the various sections on the config file do?

- The orbs seem to be packages that you can add to your script that come with certain tests build in so you don't have to reinvent anything. For instance, the reason I can use npm install and npm test is because I have the node orb incorperated.

- The jobs tell you what job is being done. The first job is a build-and-test, which is precisely what it is doing. Inside the job it also will tell you the steps that need to be taken to complete this job, and it will run those steps automatically for you.

- The workflow is just the order in which the jobs are ran. Since there's only one job, though, the order doesn't really matter.
- When a CI build is successful, what does that philosophically and practically/precisely indicate about the build?

- When a build is successful that means that it passed all of the tests built to inspect the code, and it is now ready to be integrated into the master branch.
- If you were to take the next step and ready this project for Continuous Delivery, what additional changes might you make in this configuration (conceptual, not code)?

- If I were to deploy it to something like Heroku, I think I could just add an orb for Heroku, and then use the workflow to deploy to Heroku after running some tests.

# Step 5: Merging the feature branch
* The output of my git commit log
```
0cad8aa (HEAD -> master, origin/master, origin/labreport, origin/HEAD, labreport) Answered CircleCI questions @tangollama
57a4434 added feature branch diagram to assets folder @tangollama
25911b1 added jobs screenshot to assets folder @tangollama
9253245 added jobs screenshot to assets folder @tangollama
0c5aeb4 updated labreport @tangollama
332d09f adding diagram to assets folder @tangollama
928d0f0 updated circleci @tangollama
22b7652 Copy the content for the setup instructions into config.yml @tangollama
3d56731 Added my git commit log @tangollama
ee20f12 hopefully this works @tangollama
6c23264 restarting the lab @tangollama
dabceca Merge pull request #24 from tangollama/circleci
a4096db Create README.md
2f01bf4 Update LAB_INSTRUCTIONS.md
347bd50 Update LAB_INSTRUCTIONS.md
7aaa9f3 Update LAB_INSTRUCTIONS.md
37393ae Bug fixed
1949d2a Update LAB_INSTRUCTIONS.md
d36ad90 Update LAB.md
59ef18a Update LAB_INSTRUCTIONS.md
37be3c8 Update LAB_INSTRUCTIONS.md
97da547 Update LAB.md
0bd6244 (origin/purelab) updated Step 0 title
4562cd8 added npm and node install repreq
255051e adding template
13a09b7 Adding the LAB.md and correcting some instructions.
d2ddea5 Version 0.0.1 of the lab isntructions
ab312fc more progress
62fb0a5 more progress
fe1937b more in the lab instructions
3e807fb first section
9ae6b83 remove LAB.md
e429c1a lab instructions
ce1fcea circleci default config
80bbdbb circleci default config
968099e remove test db
7362cd1 working
44ce6ae Initial commit
```
* https://github.com/Willnew98/cis411_lab0/blob/labreport/assets/Jobs%20Screenshot.png


# Step 6: Submitting a Pull Request
_Remember to reference at least one other student in the PR content via their GitHub handle._

# Step 7: [EXTRA CREDIT] Augment the core project
PR reference in the report to one of the following:
1. Add one or more unit tests to the core assignment project.
2. Configure the CircleCI config.yml to automatically build a Docker image of the project.
3. Configure an automatic deployment of the successful CircleCI build to an Amazon EC2 instance.
15 changes: 15 additions & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/.bin/uuid.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading