Skip to content

Commit 713e748

Browse files
authored
Merge branch 'master' into ci-profile_page
2 parents ec980b0 + 409caed commit 713e748

File tree

11 files changed

+74
-8
lines changed

11 files changed

+74
-8
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ cache:
1515
directories:
1616
- vendor/bundle
1717
- node_modules
18+
addons:
19+
apt:
20+
packages:
21+
- libxml2-utils
1822
deploy:
1923
provider: heroku
2024
api_key:
@@ -36,3 +40,4 @@ install:
3640
- bundle install --deployment
3741
script:
3842
- bundle exec rake test
43+
- xmllint --noout _site/feed.build-env-updates.xml

_data/deployments.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ Scalingo: "/user/deployment/scalingo/"
3737
Script: "/user/deployment/script/"
3838
Surge.sh: "/user/deployment/surge/"
3939
TestFairy: "/user/deployment/testfairy/"
40+
Ubuntu Snap Store: "/user/deployment/snaps/"

feed.build-env-updates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ layout: null
99
<link>https://travis-ci.com</link>
1010
<atom:link href="http://docs.travis-ci.com/feed.build-env-updates.xml" rel="self" type="application/rss+xml" />
1111
{% for page in site.pages %}
12-
{% if page.category == "build_env_updates" %}
12+
{% if page.category == "mac_build_env_updates" or page.category == "linux_build_env_updates" %}
1313
<item>
1414
<title>{{ page.title | xml_escape }}</title>
1515
<description>{{ page.content | xml_escape }}</description>

user/deployment/codedeploy.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ You can explicitly specify the branch to deploy from with the **on** option:
6161
secret_access_key: "YOUR AWS SECRET KEY"
6262
bucket: "S3 Bucket"
6363
key: latest/MyApp.zip
64+
bundle_type: zip
6465
application: MyApp
6566
deployment_group: MyDeploymentGroup
6667
on:
@@ -77,6 +78,7 @@ Alternatively, you can also configure Travis CI to deploy from all branches:
7778
secret_access_key: "YOUR AWS SECRET KEY"
7879
bucket: "S3 Bucket"
7980
key: latest/MyApp.zip
81+
bundle_type: zip
8082
application: MyApp
8183
deployment_group: MyDeploymentGroup
8284
on:
@@ -164,6 +166,7 @@ You can explicitly specify the AWS region to deploy to with the **region** optio
164166
secret_access_key: "YOUR AWS SECRET KEY"
165167
bucket: "S3 Bucket"
166168
key: latest/MyApp.zip
169+
bundle_type: zip
167170
application: MyApp
168171
deployment_group: MyDeploymentGroup
169172
region: us-west-1

user/deployment/pypi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Alternatively, you can also configure Travis CI to release from all branches:
7373
```yaml
7474
deploy:
7575
provider: pypi
76-
api_key: ...
76+
user: ...
77+
password: ...
7778
on:
7879
all_branches: true
7980
```

user/deployment/rubygems.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ deploy:
160160
You can deploy only when certain conditions are met.
161161
See [Conditional Releases with `on:`](/user/deployment#Conditional-Releases-with-on%3A).
162162

163+
### Gem must be registered beforehand
164+
165+
Note that the gem you upload must be registered beforehand.
166+
If the gem does not exist on the host to which it is uploaded, deployment will fail.
167+
See [this GitHub issue](https://github.com/travis-ci/dpl/issues/574) for details.
168+
163169
### Running commands before and after release
164170

165171
Sometimes you want to run commands before or after releasing a gem. You can use the `before_deploy` and `after_deploy` stages for this. These will only be triggered if Travis CI is actually pushing a release.

user/deployment/snaps.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Ubuntu Snap Store
3+
layout: en
4+
permalink: /user/deployment/snaps/
5+
---
6+
7+
Travis CI can automate the continuous delivery to the [Snaps](https://snapcraft.io) Store.
8+
9+
Snaps are a new packaging and delivery system for Ubuntu, Debian, Fedora, openSuse and other [Linux distros](https://snapcraft.io/docs/core/install). Snaps are secure, they bundle all their dependencies and they are designed to be part of the upstream development workflow in a seamless way. This means that no distro maintainers are involved, and that the delivery to the store can be fully automated. The snaps installed in the users' machines are auto-updated, so a few hours after you push a new snap to the store, all your users will get the most recent version.
10+
11+
To automate continuous delivery of snaps to the Ubuntu store:
12+
13+
1. [Encrypt](https://docs.travis-ci.com/user/encrypting-files) your snapcraft credentials with Travis CI
14+
2. Add the encrypted credentials to the repository where you have the `snapcraft.yaml` metadata for your package.
15+
3. Run `snapcraft` and `snapcraft push` in your `.travis.yml`:
16+
17+
```yaml
18+
deploy:
19+
skip_cleanup: true
20+
provider: script
21+
script: docker run -v $(pwd):$(pwd) -w $(pwd) snapcore/snapcraft sh -c "apt update && snapcraft && snapcraft push *.snap --release edge"
22+
on:
23+
branch: master
24+
```
25+
26+
The `snapcraft enable-ci travis` command will assist you getting the credential, encrypting it and adding the right script to the deploy section of your `.travis.yml` file. Here is a [tutorial that will guide you setting up the continuous delivery from Travis CI](https://tutorials.ubuntu.com/tutorial/continuous-snap-delivery-from-travis-ci#0) on your project.
27+
28+
Note that the `edge` channel is intended for crowdtesting with your community of early adopters. With this deployment script in Travis, every time a pull request lands into the master branch, a new snap will be published to edge. Your testers can install it in any of the supported Linux distros with:
29+
30+
```bash
31+
sudo snap install my-snap-name --edge
32+
```
33+
34+
After that, they will be always ready to provide early feedback and help making a more stable release.
35+
36+
You can adjust the Travis script and the `snapcraft` calls to fit your development process. For example, you could install the snap and run user acceptance tests before releasing to edge, to make sure that there are no regressions in master. Also, there are three other channels in the store: `beta`, `candidate` and `stable`. You can run different tests suites with Travis for each channel on your way to stable.
37+
38+
There are plenty of [tutorials](https://tutorials.ubuntu.com/) and [videos](https://www.youtube.com/snapcraftio) that will help you packaging your project as a snap.

user/languages/javascript-with-nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ language: node_js
265265
node_js:
266266
- "7"
267267
before_install:
268-
- "curl -L https://raw.githubusercontent.com/arunoda/travis-ci-laika/master/configure.sh | /bin/sh"
268+
- "curl -L https://raw.githubusercontent.com/arunoda/travis-ci-laika/6a3a7afc21be99f1afedbd2856d060a02755de6d/configure.sh | /bin/sh"
269269
services:
270270
- mongodb
271271
env:
@@ -286,7 +286,7 @@ language: node_js
286286
node_js:
287287
- "7"
288288
before_install:
289-
- "curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/master/configure.sh | /bin/sh"
289+
- "curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/dca8e51fafd60d9e5a8285b07ca34a63f22a5ed4/configure.sh | /bin/sh"
290290
before_script:
291291
- "export PATH=$HOME/.meteor:$PATH"
292292
```

user/languages/nix.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,21 @@ The default channel for `nixpkgs` will be `nixpkgs-unstable`.
3232

3333
The following command line tools are available in the Nix environment:
3434

35-
- nix-env
35+
- nix
3636
- nix-build
37+
- nix-channel
38+
- nix-collect-garbage
39+
- nix-copy-closure
40+
- nix-daemon
41+
- nix-env
42+
- nix-instantiate
43+
- nix-prefetch-url
3744
- nix-shell
3845
- nix-store
39-
- nix-channel
4046

4147
## Default Nix Version
4248

43-
Currently, only version "1.11.2" of Nix is provided. In the future, it may be possible to configure different versions with `.travis.yml`.
49+
This installs the current version of Nix using https://nixos.org/nix/install. In the future, it may be possible to configure different versions with `.travis.yml`.
4450

4551
## Default Target
4652

user/languages/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cargo test --verbose
9999
You always can always configure different comands if you need to. For example,
100100
if your project is a
101101
[workspace](http://doc.crates.io/manifest.html#the-workspace-section), you
102-
should pass `-all` to the build commands to build and test all of the member
102+
should pass `--all` to the build commands to build and test all of the member
103103
crates:
104104

105105
```yaml

user/running-build-in-debug-mode.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ $ curl -s -X POST \
4747
https://api.travis-ci.org/job/${id}/debug
4848
```
4949

50+
(Note the literal word `token` must be present before the actual authorization token.)
51+
5052
For private repositories, the API endpoint is `https://api.travis-ci.com/job/${id}/debug`.
5153

54+
#### Finding the job ID
55+
56+
The `${id}` is a job ID, not a build ID. For example, the ID `248927956` in the URL [`https://travis-ci.org/travis-ci/docs-travis-ci-com/builds/248927956`](https://travis-ci.org/travis-ci/docs-travis-ci-com/builds/248927956) is a build ID. To obtain the corresponding job ID, click the _View config_ button on that page, and the URL will change into [`https://travis-ci.org/travis-ci/docs-travis-ci-com/jobs/248927957/config`](https://travis-ci.org/travis-ci/docs-travis-ci-com/jobs/248927957/config), showing the job ID `248927957`. Alternatively, you can obtain job IDs corresponding to a build ID [via the API](https://docs.travis-ci.com/api/#builds).
57+
5258
#### Echoing debug session's output to the logs
5359

5460
To show any command input and output you see while connected to the VM running in the debug

0 commit comments

Comments
 (0)