Skip to content

Commit ec6f8c8

Browse files
authored
Merge branch 'master' into dj-add-user-management-commands
2 parents 5c9bf78 + fea0eea commit ec6f8c8

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

user/common-build-problems.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,3 +622,7 @@ jobs:
622622

623623

624624
This creates only one job, _Peanut Butter and Bread_ under the stage named _Breakfast_ as you have defined. It is important to note that in YAML, the `-` symbol is used to create a list of items and the earlier example creates a list of 2 items, while you actually wanted 1. You can read more on [How to define Build Stages](/user/build-stages/#how-to-define-build-stages) and YAML lists syntax in the official [documentation](https://yaml.org/spec/1.2/spec.html#id2759963).
625+
626+
## **Node**: Script execution before dependency installation causes build failures
627+
628+
When adding custom setup instructions to a NodeJS build, add them in the `before_script` phase and not before _dependencies are installed_. The `before_script` phase is the safest place to add custom setup scripts. Symptoms of this problem include previously succeeding builds suddenly failing due to the addition of a new dependency.

user/deployment/pypi.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,43 @@ Travis CI can automatically release your Python package to [PyPI](https://pypi.p
99

1010

1111

12-
For a minimal configuration, add the following to your `.travis.yml`:
12+
For a minimal configuration, generate [PyPI API token](https://pypi.org/help/#apitoken) and add the following to your `.travis.yml`:
1313

1414
```yaml
1515
deploy:
1616
provider: pypi
17-
user: "Your username"
18-
password: "Your password"
17+
user: "__token__"
18+
password: "Your PyPI API token, including the pypi- prefix"
1919
```
2020
{: data-file=".travis.yml"}
2121
22-
However, this would expose your PyPI password to the world.
22+
However, this would expose your PyPI API token to the world.
2323
We recommend you [encrypt](/user/encryption-keys/) your password and add it to your .travis.yml by running:
2424
2525
```bash
26-
travis encrypt your-password-here --add deploy.password
26+
travis encrypt your-api-token --add deploy.password
2727
```
2828

2929
If you are using travis-ci.com and not travis-ci.org, you need to add the `--com` argument to switch the Travis API endpoint:
3030

3131
```bash
32-
travis encrypt your-password-here --add deploy.password --com
32+
travis encrypt your-api-token --add deploy.password --com
3333
```
3434

35-
> Note that if your PyPI password contains [special characters](/user/encryption-keys#note-on-escaping-certain-symbols) you need to escape them before encrypting your password. Some people have [reported difficulties](https://github.com/travis-ci/dpl/issues/377) connecting to PyPI with passwords containing anything except alphanumeric characters.
36-
3735
```yaml
3836
deploy:
3937
provider: pypi
40-
user: "Your username"
38+
user: "__token__"
4139
password:
42-
secure: "Your encrypted password"
40+
secure: "Your encrypted token"
4341
```
4442
{: data-file=".travis.yml"}
4543
44+
It is also possible, but not recommended, to use PyPI user and password, instead of token.
45+
46+
> Note that if your PyPI password contains [special characters](/user/encryption-keys#note-on-escaping-certain-symbols) you need to escape them before encrypting your password. Some people have [reported difficulties](https://github.com/travis-ci/dpl/issues/377) connecting to PyPI with passwords containing anything except alphanumeric characters.
47+
48+
4649
## Deploying tags
4750
4851
Most likely, you would only want to deploy to PyPI when a new version of your

user/languages/julia.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ Note that the `coverage=true` argument only tells `Pkg.test` to emit coverage in
8686
about the tests it ran; it does not submit this information to any services.
8787
To submit coverage information, see the coverage section above.
8888

89+
There are two scripts that describe the defualt behavior for using Julia with Travis CI:
90+
[julia.rb](https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/script/julia.rb)
91+
and [julia_spec.rb](https://github.com/travis-ci/travis-build/blob/master/spec/build/script/julia_spec.rb).
92+
8993
## Dependency Management
9094

9195
If your Julia package has a `deps/build.jl` file, then `Pkg.build("$name")`

user/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ os: osx
8585
```
8686
{: data-file=".travis.yml"}
8787

88-
> You do *not* necessarily need to use macOS, if you develop on a Mac.
89-
> macOS is required only, if you need Swift, Objective-C or other
88+
> You do *not* necessarily need to use macOS if you develop on a Mac.
89+
> macOS is required only if you need Swift, Objective-C, or other
9090
> macOS-specific software.
9191

9292
Travis CI supports many [programming languages](/user/languages/).

0 commit comments

Comments
 (0)