Skip to content

Commit 224f8d1

Browse files
Merge branch 'master' into packagecloud
2 parents 57edcc9 + 8e8cd73 commit 224f8d1

20 files changed

+190
-41
lines changed

jekyll/_cci2/browser-testing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ jobs:
9696
wget --retry-connrefused --no-check-certificate -T 60 localhost:4445 # wait for app to be ready
9797
- run: # base image is python, so we run `nosetests`, an extension of `unittest`
9898
command: nosetests
99-
- run: # wait for Sauce Connect to close the tunnel
100-
command: killall --wait sc
99+
- run:
100+
name: Shut Down Sauce Connect Tunnel
101+
command: |
102+
kill -9 `cat /tmp/sc_client.pid`
101103
```
102104
103105
## BrowserStack and Appium

jekyll/_cci2/build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: classic-docs
3-
title: "Docker, Machine, and iOS Builds"
4-
description: "CircleCI 2.0 Configuration"
3+
title: "Build Environments"
4+
description: "CircleCI 2.0 Build Environment Configuration"
55
---
66

77

jekyll/_cci2/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,13 @@ before restoring dependencies from cache.
337337

338338
```yaml
339339
steps:
340-
- run: bundle install & bundle clean
341340
- restore_cache:
342341
keys:
343342
# when lock file changes, use increasingly general patterns to restore cache
344343
- v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
345344
- v1-gem-cache-{{ arch }}-{{ .Branch }}-
346345
- v1-gem-cache-{{ arch }}-
346+
- run: bundle install && bundle clean
347347
- save_cache:
348348
paths:
349349
- ~/.bundle

jekyll/_cci2/contexts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For any GitHub Enterprise (GHE) installation that includes multiple organization
3636

3737
3. Click the Add Environment Variable button and copy/paste in the variable name and value. Click the Add Variable button to save it.
3838

39-
4. Add the `context: <context name>` key to the [`workflows`]({{ site.baseurl }}/2.0/configuration-reference/#workflows section of your [`config.yml`]({{ site.baseurl }}/2.0/configuration-reference/) file for every job in which you want to use the variable. In the following example, the `run-tests` job will use the variables set in the `org-global` context.
39+
4. Add the `context: <context name>` key to the [`workflows`]({{ site.baseurl }}/2.0/configuration-reference/#workflows) section of your [`config.yml`]({{ site.baseurl }}/2.0/configuration-reference/) file for every job in which you want to use the variable. In the following example, the `run-tests` job will use the variables set in the `org-global` context.
4040

4141
```
4242
workflows:

jekyll/_cci2/demo-apps.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ categories: [language-guides]
77
order: 0
88
---
99

10-
Code that builds on Linux or iOS will generally build on CircleCI 2.0. We’ve created several demo applications in various languages, so you can learn by example form an app written in the same laguage as your application. Each language listed below has an associated guide and public repository on GitHub. Fork them and follow along!
10+
Code that builds on Linux or iOS will generally build on CircleCI 2.0. We’ve created several demo applications in various languages, so you can learn by example from an app written in the same laguage as your application. Each language listed below has an associated guide and public repository on GitHub. Fork them and follow along!
1111

1212
Language Guide | Framework | GitHub Repo Name
1313
---------|-----------|-----------------
1414
[Android](https://github.com/CircleCI-Public/circleci-demo-react-native/blob/master/README.md){:target="_blank"} | React Native | [circleci-demo-react-native]{:target="_blank"}
1515
[Clojure]{:target="_blank"} | Luminus | [circleci-demo-clojure-luminus]{:target="_blank"}
16+
[Crystal]({{ site.baseurl }}/2.0/language-crystal/) | Kemal | [circleci-demo-crystal](https://github.com/teesloane/circleci-demo-crystal)
1617
[Elixir]{:target="_blank"} | Phoenix | [circleci-demo-elixir-phoenix]{:target="_blank"}
1718
[Go]{:target="_blank"} | Go | [circleci-demo-go]{:target="_blank"}
1819
[iOS]{:target="_blank"} | Xcode | [circleci-demo-ios]{:target="_blank"}
@@ -24,6 +25,7 @@ Language Guide | Framework | GitHub Repo Name
2425
[Python]({{ site.baseurl }}/2.0/project-walkthrough/){:target="_blank"} | Flask | [circleci-demo-python-flask]{:target="_blank"}
2526
[React Native](https://github.com/CircleCI-Public/circleci-demo-react-native/blob/master/README.md){:target="_blank"} | React Native | [circleci-demo-react-native]{:target="_blank"}
2627
[Ruby and Rails]{:target="_blank"} | Rails | [circleci-demo-ruby-rails]{:target="_blank"}
28+
[Scala]({{ site.baseurl }}/2.0/language-scala/){:target="_blank"} | sbt | [samplescala](https://github.com/ariv3ra/samplescala){:target="_blank"}
2729
{: class="table"}
2830

2931
## Supported Languages
@@ -36,9 +38,14 @@ Language Guide | Framework | GitHub Repo Name
3638
- Python (Python 2 and later)
3739
- React Native
3840
- Ruby and Rails (Ruby 2 and later)
41+
- Scala and sbt
3942

4043
Build projects in C, C#, C++, Clojure, Elixir, Erlang, Go, Groovy, Haskell, Haxe, Java, JavaScript, Node.js, Perl, PHP, Python, Ruby, Rust, Scala and many more.
4144

45+
## See Also
46+
47+
Refer to the [Getting Started Introduction] for the steps to run your first build.
48+
4249

4350
[Android]: {{ site.baseurl }}/2.0/language-android/
4451
[Clojure]: {{ site.baseurl }}/2.0/language-clojure/

jekyll/_cci2/language-crystal.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
layout: classic-docs
3+
title: "Language Guide: Crystal"
4+
short-title: "Crystal"
5+
description: "Building and Testing with Crystal on CircleCI 2.0"
6+
categories: [language-guides]
7+
order: 9
8+
---
9+
10+
*[Tutorials & 2.0 Sample Apps]({{ site.baseurl }}/2.0/tutorials/) > Language Guide: Crystal*
11+
12+
This guide will help you get started with a minimal Crystal application on CircleCI.
13+
14+
## Overview
15+
16+
If you’re in a rush, just copy the sample configuration below into a `.circleci/config.yml` in your project’s root directory and start building.
17+
18+
You can view an example Crystal project at the following link:
19+
20+
- <a href="https://github.com/teesloane/circleci-demo-crystal"
21+
target="_blank">Demo Crystal Project on Github</a>
22+
23+
In the project you will find a commented CircleCI configuration file <a href="https://github.com/teesloane/circleci-demo-crystal/blob/master/.circleci/config.yml" target="_blank">`.circleci/config.yml`</a>.
24+
25+
The application uses Crystal 0.26 and Kemal 0.24. Both Crystal and Kemal are
26+
developing quickly. Altering the Docker image to the `:latest` version may cause
27+
breaking changes.
28+
29+
## Sample Configuration
30+
31+
{% raw %}
32+
```
33+
version: 2 # use CircleCI 2.0
34+
jobs: # a collection of jobs
35+
build:
36+
working_directory: ~/demo_app
37+
docker: # run build steps with docker
38+
- image: crystallang/crystal:0.26.0 # primary docker container; all `steps` will run here.
39+
steps: # a collection of executable steps
40+
- checkout # checks out source code to working directory
41+
- restore_cache: # Restore dependency cache
42+
key: dependency-cache-{{ checksum "shard.lock" }}
43+
- run:
44+
name: Install dependencies.
45+
command: shards install
46+
- save_cache: # Step to save dependency cache
47+
key: dependency-cache-{{ checksum "shard.lock" }}
48+
paths:
49+
- ./lib
50+
- run:
51+
name: test
52+
command: crystal spec
53+
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
54+
```
55+
{% endraw %}
56+
57+
Great! You've set up CircleCI 2.0 for a basic Crystal application.
58+
59+
## Deploy
60+
61+
See the [Deploy]({{ site.baseurl }}/2.0/deployment-integrations/) document for example deploy target configurations.

jekyll/_cci2/project-build.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ After a software repository on GitHub or Bitbucket is authorized and added as a
1515

1616
## Adding Projects
1717

18+
A CircleCI project shares the name of the associated code repository and is visible on the Projects page of the CircleCI app. Projects are added by using the Add Project button.
19+
20+
## Add Projects Page
21+
22+
![header]({{ site.baseurl }}/assets/img/docs/CircleCI-2.0-setup-project-circle101.png)
23+
24+
*Following* a project enables a user to subscribe to [email notifications]({{ site.baseurl }}/2.0/notifications/) for the project [build status]({{ site.baseurl }}/2.0/status/) and adds the project to their CircleCI dashboard.
25+
26+
The *Project Administrator* is the user who adds a GitHub or Bitbucket repository to CircleCI as a Project. A *User* is an individual user within an org. A CircleCI user is anyone who can log in to the CircleCI platform with a username and password. Users must be added to a [GitHub or Bitbucket org]({{ site.baseurl }}/2.0/gh-bb-integration/) to view or follow associated CircleCI projects. Users may not view project data that is stored in environment variables.
27+
1828
If you do not see your project and it is not currently building on CircleCI, check your Organization in the top left corner of the CircleCI application. For example, if the top left shows your user `myUser`, only Github projects belonging to `myUser` will be available under `Add Projects`. If you want to build the Github project `myOrg/orgProject`, you must select `myOrg` on the application Switch Organization menu.
1929

2030
![Switch Organization Menu]({{ site.baseurl }}/assets/img/docs/org-centric-ui.png)

jekyll/_cci2/sample-config.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ categories: [migration]
77
order: 2
88
---
99

10-
*[Tutorials & Sample Apps]({{ site.baseurl }}/2.0/tutorials/) > Sample 2.0 config.yml Files*
11-
12-
This document provides three sample `.circleci/config.yml` files, as follows:
10+
This document provides three sample [`.circleci/config.yml`]({{ site.baseurl }}/2.0/configuration-reference/) files, as follows:
1311

1412
* TOC
1513
{:toc}
@@ -301,3 +299,7 @@ workflows:
301299
```
302300

303301
{% endraw %}
302+
303+
## See Also
304+
305+
See the [Example Public Repos] document for a list of public projects that use CircleCI.

jekyll/_cci2/security.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ category: [administration]
55
order: 5
66
description: "CircleCI security features."
77
---
8-
*[Reference]({{ site.baseurl }}/2.0/reference/) > Security Features*
98

109
This document outlines security features built into CircleCI and related integrations.
1110

@@ -63,6 +62,8 @@ Complete Audit logs may be downloaded from the Audit Log page within the Admin s
6362
**Note:** In some situations, the internal machinery may generate duplicate events in the audit logs. The `id` field of the downloaded logs is unique per event and can be used to identify duplicate entries.
6463

6564
### Audit Log Events
65+
{:.no_toc}
66+
6667
<!-- TODO: automate this from event-cataloger -->
6768
Following are the system events that are logged. See `action` in the Field section below for the definition and format.
6869

@@ -83,6 +84,8 @@ Following are the system events that are logged. See `action` in the Field secti
8384

8485

8586
### Audit Log Fields
87+
{:.no_toc}
88+
8689
- **action:** The action taken that created the event. The format is ASCII lowercase words separated by dots, with the entity acted upon first and the action taken last. In some cases entities are nested, for example, `workflow.job.start`.
8790
- **actor:** The actor who performed this event. In most cases this will be a CircleCI user. This data is a JSON blob that will always contain `id` and and `type` and will likely contain `name`.
8891
- **target:** The entity instance acted upon for this event, for example, a project, an org, an account, or a build. This data is a JSON blob that will always contain `id` and and `type` and will likely contain `name`.
@@ -95,3 +98,7 @@ Following are the system events that are logged. See `action` in the Field secti
9598
- **success:** A flag to indicate if the action was successful.
9699
- **request:** If this event was triggered by an external request this data will be populated and may be used to connect events that originate from the same external request. The format is a JSON blob containing `id` (the request ID assigned to this request by CircleCI), `ip_address` (the original IP address in IPV4 dotted notation from which the request was made, eg. 127.0.0.1), and `client_trace_id` (the client trace ID header, if present, from the 'X-Client-Trace-Id' HTTP header of the original request).
97100

101+
## See Also
102+
{:.no_toc}
103+
104+
[GitHub and Bitbucket Integration]({{ site.baseurl }}/2.0/gh-bb-integration/)

jekyll/_cci2/settings.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ categories: [settings]
77
order: 2
88
---
99

10-
CircleCI provides a Project and Org settings with encrypted storage in the CircleCI app.
10+
CircleCI provides Project and Org settings with encrypted storage in the CircleCI app.
1111

1212
## Project Settings Page
1313

1414
![settings]( {{ site.baseurl }}/assets/img/docs/settings.png)
1515

1616

17-
1817
## Organization Settings Page
1918
For your [Org Plan or Billing settings]({{ site.baseurl }}/2.0/faq/#billing), see the Settings tab of the CircleCI app for summary data about your usage.
2019
<hr>
2120

22-
Plans and Billing | Contexts
23-
------------------------|------------------
24-
For your [Org Plan or Billing settings]({{ site.baseurl }}/2.0/faq/#billing), see the Settings tab of the CircleCI app for summary data about your usage. | Share environment variables across projects with a Workflow key, on the [contexts page]({{ site.baseurl }}/2.0/contexts/).
25-
2621
![settings]( {{ site.baseurl }}/assets/img/docs/plan-settings.png)
2722

23+
## See Also
24+
25+
- Plans and Billing -- For your [Org Plan or Billing settings]({{ site.baseurl }}/2.0/faq/#billing), see the Settings tab of the CircleCI app for summary data about your usage.
26+
- Cntexts -- Share environment variables across projects with a Workflow key, on the [contexts page]({{ site.baseurl }}/2.0/contexts/).
27+

jekyll/_cci2/skip-build.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ categories: [configuring-jobs]
77
order: 100
88
---
99

10-
_[Basics]({{ site.baseurl }}/2.0/basics/) > Skip and Cancel Builds_
11-
1210
This document describes how to
1311
skip or cancel builds in the following sections.
1412

@@ -38,6 +36,7 @@ Otherwise, click one of the Rebuild options on the **Job page** of the CircleCI
3836
This feature is not supported for fork PRs.
3937

4038
### Example Commit Title
39+
{:.no_toc}
4140

4241
```bash
4342
$ git log origin/master..HEAD
@@ -54,6 +53,7 @@ this commit will not be built on CircleCI
5453
because of the `[ci skip]` in the commit title.
5554

5655
### Example Commit Description
56+
{:.no_toc}
5757

5858
```bash
5959
$ git log origin/master..HEAD
@@ -97,6 +97,7 @@ This feature only applies to non-workflow builds, builds triggered by pushes to
9797

9898

9999
### Steps to Enable Auto-Cancel for New Builds Triggered by Pushes to GitHub without Workflows
100+
{:.no_toc}
100101

101102
1. In the CircleCI application,
102103
go to your project's settings
@@ -110,6 +111,7 @@ click the **On** button.
110111

111112

112113
### Steps to Enable Auto-Cancel for Workflows Triggered by Pushes to GitHub or the API
114+
{:.no_toc}
113115

114116
Projects for which auto-cancel is enabled in the Advanced Settings will have workflows on non-default branches cancelled when a newer build is triggered on that same branch.
115117

jekyll/_cci2/ssh-access-jobs.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ categories: [troubleshooting]
77
order: 20
88
---
99

10-
*[Basics]({{ site.baseurl }}/2.0/basics/) > Debugging with SSH*
11-
1210
This document describes how to access a build container using SSH on CircleCI 2.0 in the following sections:
1311

1412
* TOC
@@ -51,6 +49,7 @@ If you run into permission troubles trying to SSH to your job, try
5149
these things:
5250

5351
### Ensure Authentication With GitHub/Bitbucket
52+
{:.no_toc}
5453

5554
A single command can be used to test that your keys are set up as expected. For
5655
GitHub run:
@@ -82,6 +81,7 @@ If you _don't_ see output like that, you need to start by
8281
[troubleshooting your SSH keys with Bitbucket](https://confluence.atlassian.com/bitbucket/troubleshoot-ssh-issues-271943403.html).
8382

8483
### Ensure Authenticating as the Correct User
84+
{:.no_toc}
8585

8686
If you have multiple accounts, double-check that you are
8787
authenticated as the right one!
@@ -94,6 +94,7 @@ by offering a different SSH key with `ssh -i`. See the next section if
9494
you need a hand figuring out which key is being offered.
9595

9696
### Ensure the Correct Key is Offered to CircleCI
97+
{:.no_toc}
9798

9899
If you've verified that you can authenticate as the correct
99100
user, but you're still getting "Permission denied" from CircleCI, you
@@ -138,3 +139,8 @@ argument to SSH. For example:
138139
```
139140
$ ssh -i /Users/me/.ssh/id_rsa_github -p 64784 [email protected]
140141
```
142+
143+
## See Also
144+
{:.no_toc}
145+
146+
[GitHub and Bitbucket Integration]( {{ site.baseurl }}/2.0/gh-bb-integration/)

jekyll/_cci2/status-badges.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
layout: classic-docs
33
title: Adding Status Badges
4+
description: How to embed a CircleCI status badge in any web page or document
45
---
56

6-
[Basics]({{ site.baseurl }}/2.0/basics/) > Adding Status Badges
7-
87
This document describes how to create a badge that displays your project's build status (passed or failed) in a README or other document.
98

109
## Overview
@@ -48,3 +47,7 @@ you can use the [shield style](https://shields.io/).
4847
To use the shield style,
4948
replace `style=svg` with `style=shield`
5049
in the link you generated above.
50+
51+
## See Also
52+
53+
[Status]({{ site.baseurl }}/2.0/status/

0 commit comments

Comments
 (0)