Skip to content

Commit 1a9297c

Browse files
authored
Merge branch 'master' into renaming-deis-hephy
2 parents e10cf59 + 4890198 commit 1a9297c

File tree

5 files changed

+103
-21
lines changed

5 files changed

+103
-21
lines changed

_data/deployments.yml

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

_includes/sidebar.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ <h3>Deployments and Uploads</h3>
7979
<h3>CI Environment Reference</h3>
8080
<ul>
8181
<li class="is-overview"><a href="/user/reference/overview/">Overview</a></li>
82-
<li><a href="/user/reference/precise/">Precise CI Environment Reference</a></li>
83-
<li><a href="/user/reference/trusty/">Trusty CI Environment</a><li>
84-
<li><a href="/user/reference/xenial/">Xenial CI Environment</a><li>
85-
<li><a href="/user/reference/bionic/">Bionic CI Environment</a><li>
82+
<li><a href="/user/reference/linux/">Ubuntu Linux CI Environment References</a></li>
8683
<li><a href="/user/reference/osx/">macOS CI Environment Reference</a></li>
8784
<li><a href="/user/reference/windows/">Windows CI Environment Reference</a></li>
8885
<li><a href="/user/multi-os/">Building on Multiple Operating Systems</a></li>

user/deployment/transifex.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: Transifex Deployment
3+
layout: en
4+
5+
---
6+
7+
Travis CI supports uploading to [Transifex](https://www.transifex.com/).
8+
9+
A minimal configuration is:
10+
11+
```yaml
12+
deploy:
13+
provider: transifex
14+
controller: transifex.transifexapps.com
15+
username: "Transifex User Name"
16+
password: "Transifex Password"
17+
app: App_name
18+
cli_version: vX.Y.Z # e.g. v2.7.0 being the latest at this time
19+
```
20+
{: data-file=".travis.yml"}
21+
22+
It is recommended that you encrypt your password.
23+
Assuming you have the Travis CI command line client installed, you can do it like this:
24+
25+
```bash
26+
$ travis encrypt "YOUR TRANSIFEX PASSWORD" --add deploy.password
27+
```
28+
29+
You will be prompted to enter your api key on the command line.
30+
31+
You can also have the `travis` tool set up everything for you:
32+
33+
```bash
34+
$ travis setup transifex
35+
```
36+
37+
Keep in mind that the above command has to run in your project directory, so it can modify the `.travis.yml` for you.
38+
39+
### Conditional Releases
40+
41+
You can deploy only when certain conditions are met.
42+
See [Conditional Releases with `on:`](/user/deployment#conditional-releases-with-on).
43+
44+
### Note on `.gitignore`
45+
46+
As this deployment strategy relies on `git`, be mindful that the deployment will
47+
honor `.gitignore`.
48+
49+
If your `.gitignore` file matches something that your build creates, use
50+
[`before_deploy`](#running-commands-before-and-after-deploy) to change
51+
its content.
52+
53+
### Running Commands Before and After Deploy
54+
55+
Sometimes you want to run commands before or after triggering a deployment. 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.
56+
57+
```yaml
58+
before_deploy: "echo 'ready?'"
59+
deploy:
60+
..
61+
after_deploy:
62+
- ./after_deploy_1.sh
63+
- ./after_deploy_2.sh
64+
```
65+
{: data-file=".travis.yml"}

user/for-beginners.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ layout: en
77

88

99
Welcome to Travis CI! This page provides some contexts and terminologies used
10-
throughout the platform and documentation, which might be helpful if you are new
10+
throughout the platform and documentation, which might be helpful, if you are new
1111
here or new to Continuous Integration (CI).
1212

13-
## What is Continuous Integration (CI)?
13+
## What Is Continuous Integration (CI)?
1414

1515
Continuous Integration is the practice of merging in small code changes
1616
frequently - rather than merging in a large change at the end of a development
@@ -22,19 +22,19 @@ process by automatically building and testing code changes, providing immediate
2222
feedback on the success of the change. Travis CI can also automate other parts
2323
of your development process by managing deployments and notifications.
2424

25-
## CI builds and automation: building, testing, deploying
25+
## CI Builds and Automation: Building, Testing, Deploying
2626

27-
When you run a build, Travis CI clones your GitHub repository into a brand new
27+
When you run a build, Travis CI clones your GitHub repository into a brand-new
2828
virtual environment, and carries out a series of tasks to build and test your
29-
code. If one or more of those tasks fails, the build is considered
29+
code. If one or more of those tasks fail, the build is considered
3030
[*broken*](#breaking-the-build). If none of the tasks fail, the build is
31-
considered [*passed*](#breaking-the-build), and Travis CI can deploy your code
32-
to a web server, or application host.
31+
considered [*passed*](#breaking-the-build) and Travis CI can deploy your code
32+
to a web server or application host.
3333

3434
CI builds can also automate other parts of your delivery workflow. This means
3535
you can have jobs depend on each other with [Build Stages](/user/build-stages/),
36-
setup [notifications](/user/notifications/), prepare
37-
[deployments](/user/deployment/) after builds, and many other tasks.
36+
set up [notifications](/user/notifications/), prepare
37+
[deployments](/user/deployment/) after builds and many other tasks.
3838

3939
## Builds, Jobs, Stages and Phases
4040

@@ -45,17 +45,17 @@ In the Travis CI documentation, some common words have specific meanings:
4545
which comes before the optional `deploy` phase.
4646
* *job* - an automated process that clones your repository into a virtual
4747
environment and then carries out a series of *phases* such as compiling your
48-
code, running tests, etc. A job fails if the return code of the `script` *phase*
49-
is non zero.
48+
code, running tests, etc. A job fails, if the return code of the `script` *phase*
49+
is non-zero.
5050
* *build* - a group of *jobs*. For example, a build might have two *jobs*, each
5151
of which tests a project with a different version of a programming language.
5252
A *build* finishes when all of its jobs are finished.
53-
* *stage* - a group of *jobs* that run in parallel as part of sequential build
53+
* *stage* - a group of *jobs* that run in parallel as part of a sequential build
5454
process composed of multiple [stages](/user/build-stages/).
5555

5656
## Breaking the Build
5757

58-
The build is considered *broken* when one or more of its jobs completes with a
58+
The build is considered *broken*, when one or more of its jobs complete with a
5959
state that is not *passed*:
6060

6161
* *errored* - a command in the `before_install`, `install`, or `before_script`
@@ -67,15 +67,16 @@ state that is not *passed*:
6767
Our [Common Builds Problems](/user/common-build-problems/) page is a good place
6868
to start troubleshooting why your build is broken.
6969

70-
## Infrastructure and environment notes
70+
## Infrastructure and Environment Notes
7171

7272
Travis CI offers a few different infrastructure environments, so you can select
7373
the setup that suits your project best:
7474

75-
* *Ubuntu Linux* - these Linux Ubuntu environments run inside full virtual machines, provide plenty of computational resources, and support the use of `sudo`, `setuid`, and `setgid`.
76-
* *macOS* - uses one of several versions of the macOS operating system. This environment is useful for building projects that require the macOS software, such as projects written in Swift. It is not a requirement to use the macOS environment if you develop on a macOS machine.
75+
* *Ubuntu Linux* - these Linux Ubuntu environments run inside full virtual machines, provide plenty of computational resources, and support the use of `sudo`, `setuid`, and `setgid`. Check out more information on the [Ubuntu Linux Build Environment](/user/reference/linux/).
76+
* *macOS* - uses one of several versions of the macOS operating system. This environment is useful for building projects that require the macOS software, such as projects written in Swift. It is not a requirement to use the macOS environment, if you develop on a macOS machine. Here you can find more details on the [macOS Build Environment](/user/reference/osx/).
77+
* *Windows* - currently Windows Server version 1803 is supported. If you want to know more about it, see the [Windows Build Environment](/user/reference/windows/).
7778

78-
More details are on our environments are available in our [CI Environment](/user/ci-environment/) documentation.
79+
More details on our build environments are available in our [CI Environment](/user/ci-environment/) documentation.
7980

8081
Now that you've read the basics, head over to our [Tutorial](/user/tutorial/) for details on setting up your first
8182
build!

user/reference/linux.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: The Ubuntu Linux Build Environments
3+
layout: en
4+
5+
---
6+
7+
### Overview
8+
9+
This page gives an overview of the different Ubuntu Linux distributions you can use as your CI environment.
10+
11+
You can choose one of the following distributions:
12+
13+
* [Ubuntu Bionic 18.04](/user/reference/bionic/)
14+
* [Ubuntu Xenial 16.04](/user/reference/xenial/)
15+
* [Ubuntu Trusty 14.04](/user/reference/trusty/) **default**
16+
* [Ubuntu Precise 12.04](/user/reference/precise/)
17+
18+
Travis CI also supports the [Windows Build Environment](/user/reference/windows/) and [macOS Build Environment](/user/reference/osx/).

0 commit comments

Comments
 (0)