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
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.
[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.
38
38
39
39
## Builds, Jobs, Stages and Phases
40
40
@@ -45,17 +45,17 @@ In the Travis CI documentation, some common words have specific meanings:
45
45
which comes before the optional `deploy` phase.
46
46
**job* - an automated process that clones your repository into a virtual
47
47
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 nonzero.
48
+
code, running tests, etc. A job fails, if the return code of the `script`*phase*
49
+
is non-zero.
50
50
**build* - a group of *jobs*. For example, a build might have two *jobs*, each
51
51
of which tests a project with a different version of a programming language.
52
52
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
54
54
process composed of multiple [stages](/user/build-stages/).
55
55
56
56
## Breaking the Build
57
57
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
59
59
state that is not *passed*:
60
60
61
61
**errored* - a command in the `before_install`, `install`, or `before_script`
@@ -67,15 +67,16 @@ state that is not *passed*:
67
67
Our [Common Builds Problems](/user/common-build-problems/) page is a good place
68
68
to start troubleshooting why your build is broken.
69
69
70
-
## Infrastructure and environment notes
70
+
## Infrastructure and Environment Notes
71
71
72
72
Travis CI offers a few different infrastructure environments, so you can select
73
73
the setup that suits your project best:
74
74
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/).
77
78
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.
79
80
80
81
Now that you've read the basics, head over to our [Tutorial](/user/tutorial/) for details on setting up your first
0 commit comments