Skip to content

Commit ad70c8f

Browse files
.travis.yml location in SVN and Perforce (travis-ci#3213)
1 parent 4c7fce7 commit ad70c8f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

user/travis-ci-vcs-proxy-get-started.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ The defaults for Ruby projects are a `bundle install` to [install dependencies](
6464

6565
> Travis only runs builds on the commits you push *after* you've added a `.travis.yml` file. As of now, only commits performed by the TCI VCS Proxy users with correct P4/SVN credentials may trigger automatic builds in the Travis CI.
6666

67+
You must create `.travis.yml` file in specific path in the repository, depending on whether you use SVN or Perforce Helix Core (Perforce).
68+
69+
In case of SVN:
70+
71+
Travis CI watches the **/trunk/.travis.yml** by default.
72+
Whenever configured to build from branch, e.g. branch named **abc**, Travis CI watches **/branches/abc/.travis.yml**
73+
74+
In case of Perforce:
75+
76+
Travis CI watches the **/depotname/main/.travis.yml** by default, so if depot name is e.g. **depot** - Travis CI expects **/depot/main/.travis.yml**.
77+
Respectively, if a separate stream (e.g. **abc**) is created within depot (e.g. **depot**) and build is configured to build from specific stream, Travis CI expects **/depot/abc/.travis.yml** to be present in order to trigger the build upon submitting changes.
78+
79+
6780
**IMPORTANT**
6881

6982
Perforce depot/repository may be very heavy, so downloading it fully for build (e.g., terabytes of data) is often unwanted, as the source code to be built/tested is only a fraction of the whole depot size. To download it partially, a Travis CI user must define a specific subpath, which is later downloaded by the Travis CI build job. Such subpaths may be defined by using the `perforce_test_path` tag within a `.travis.yml` file. If the property is not provided, the default behavior is downloading the whole depot/repository. See the example below for reference.

0 commit comments

Comments
 (0)