Skip to content

Commit d11c857

Browse files
committed
rebuild site with bettter instructions for mean repo
1 parent 35e45a4 commit d11c857

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

08-ci.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h2><span class="glyphicon glyphicon-certificate"></span>Learning Objectives</h2
4444
<p>To make running the tests as easy as possible, many software development teams implement a strategy called <strong>continuous integration</strong>. As its name implies, continuous integration integrates the test suite into the development process. Every time a change is made to the repository, the continuous integration system builds and checks that code.</p>
4545
<section class="challenge panel panel-success">
4646
<div class="panel-heading">
47-
<h2><span class="glyphicon glyphicon-pencil"></span>Does Your Software Works on Your Colleague’s Computer?</h2>
47+
<h2><span class="glyphicon glyphicon-pencil"></span>Thought Experiment: Does Your Software Work on Your Colleague’s Computer?</h2>
4848
</div>
4949
<div class="panel-body">
5050
<p>Imagine you developed software on a MacOSX computer. Last week, you helped your office mate build and run it on their Linux computer. You’ve made some changes since then.</p>
@@ -72,8 +72,23 @@ <h2><span class="glyphicon glyphicon-pushpin"></span>Let The Computers Do The Wo
7272
</ul>
7373
</div>
7474
</aside>
75+
<p>Since the first step the server conducts is to check out the code from a repository, we’ll need to put our code online to make use of this kind of server (unless we are able/willing to set up our own CI server).</p>
76+
<section class="challenge panel panel-success">
77+
<div class="panel-heading">
78+
<h2><span class="glyphicon glyphicon-pencil"></span>Set Up a Mean Git Repository on GitHub</h2>
79+
</div>
80+
<div class="panel-body">
81+
<p>Your <code>mean.py</code> <code>test_mean.py</code> files can be the contents of a repository on GitHub.</p>
82+
<ol style="list-style-type: decimal">
83+
<li>Go to GitHub and <a href="https://github.com/new">create a repository</a> called mean.</li>
84+
<li>Clone that repository (git clone https://github.com:yourusername/mean)</li>
85+
<li>Copy the <code>mean.py</code> and <code>test_mean.py</code> files into the repository directory.</li>
86+
<li>Use git to <code>add</code>, <code>commit</code>, and <code>push</code> the two files to GitHub.</li>
87+
</ol>
88+
</div>
89+
</section>
7590
<h2 id="giving-instructions">Giving Instructions</h2>
76-
<p>Your mean repository has both code and tests. Let’s add continuous integration to that repository.</p>
91+
<p>Your work on the mean function has both code and tests. Let’s copy that code into its own repository and add continuous integration to that repository.</p>
7792
<section class="challenge panel panel-success">
7893
<div class="panel-heading">
7994
<h2><span class="glyphicon glyphicon-pencil"></span>Decide How To Set Up the Server</h2>

08-ci.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ As its name implies, continuous integration integrates the test suite into the
1818
development process. Every time a change is made to the repository, the
1919
continuous integration system builds and checks that code.
2020

21-
> ## Does Your Software Works on Your Colleague's Computer? {.challenge}
21+
> ## Thought Experiment: Does Your Software Work on Your Colleague's Computer? {.challenge}
2222
> Imagine you developed software on a MacOSX computer. Last week, you helped
2323
> your office mate build and run it on their Linux computer. You've made some
2424
> changes since then.
@@ -51,11 +51,24 @@ compatible.
5151
> - check for errors
5252
> - and report the results.
5353
54+
Since the first step the server conducts is to check out the code from a
55+
repository, we'll need to put our code online to make use of this kind of
56+
server (unless we are able/willing to set up our own CI server).
57+
58+
> ## Set Up a Mean Git Repository on GitHub {.challenge}
59+
> Your `mean.py` `test_mean.py` files can be the contents of a repository on
60+
> GitHub.
61+
>
62+
> 1. Go to GitHub and [create a repository](https://github.com/new) called
63+
> mean.
64+
> 2. Clone that repository (git clone https://github.com:yourusername/mean)
65+
> 3. Copy the `mean.py` and `test_mean.py` files into the repository directory.
66+
> 4. Use git to `add`, `commit`, and `push` the two files to GitHub.
5467
5568
## Giving Instructions
5669

57-
Your mean repository has both code and tests. Let's add continuous integration
58-
to that repository.
70+
Your work on the mean function has both code and tests. Let's copy that code
71+
into its own repository and add continuous integration to that repository.
5972

6073
> ## Decide How To Set Up the Server {.challenge}
6174
> It doesn't need a build system, because Python does not

0 commit comments

Comments
 (0)