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
Copy file name to clipboardExpand all lines: user/common-build-problems.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -622,3 +622,7 @@ jobs:
622
622
623
623
624
624
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.
> 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
-
37
35
```yaml
38
36
deploy:
39
37
provider: pypi
40
-
user: "Your username"
38
+
user: "__token__"
41
39
password:
42
-
secure: "Your encrypted password"
40
+
secure: "Your encrypted token"
43
41
```
44
42
{: data-file=".travis.yml"}
45
43
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
+
46
49
## Deploying tags
47
50
48
51
Most likely, you would only want to deploy to PyPI when a new version of your
0 commit comments