You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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>
45
45
<sectionclass="challenge panel panel-success">
46
46
<divclass="panel-heading">
47
-
<h2><spanclass="glyphicon glyphicon-pencil"></span>Does Your Software Works on Your Colleague’s Computer?</h2>
47
+
<h2><spanclass="glyphicon glyphicon-pencil"></span>Thought Experiment: Does Your Software Work on Your Colleague’s Computer?</h2>
48
48
</div>
49
49
<divclass="panel-body">
50
50
<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
72
72
</ul>
73
73
</div>
74
74
</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
+
<sectionclass="challenge panel panel-success">
77
+
<divclass="panel-heading">
78
+
<h2><spanclass="glyphicon glyphicon-pencil"></span>Set Up a Mean Git Repository on GitHub</h2>
79
+
</div>
80
+
<divclass="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
+
<olstyle="list-style-type: decimal">
83
+
<li>Go to GitHub and <ahref="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>
<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>
77
92
<sectionclass="challenge panel panel-success">
78
93
<divclass="panel-heading">
79
94
<h2><spanclass="glyphicon glyphicon-pencil"></span>Decide How To Set Up the Server</h2>
0 commit comments