Skip to content

Commit dcb5e85

Browse files
authored
Merge branch 'master' into patch-1
2 parents 2458dcb + cdab4ef commit dcb5e85

File tree

10 files changed

+57
-17
lines changed

10 files changed

+57
-17
lines changed

Gemfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,15 @@ GEM
147147
mime-types (3.3.1)
148148
mime-types-data (~> 3.2015)
149149
mime-types-data (3.2020.0512)
150-
mini_portile2 (2.4.0)
150+
mini_portile2 (2.5.0)
151151
minitest (5.14.1)
152152
multi_json (1.14.1)
153153
multipart-post (2.1.1)
154154
netrc (0.11.0)
155155
nio4r (2.5.2)
156-
nokogiri (1.10.9)
157-
mini_portile2 (~> 2.4.0)
156+
nokogiri (1.11.2)
157+
mini_portile2 (~> 2.5.0)
158+
racc (~> 1.4)
158159
nokogumbo (2.0.2)
159160
nokogiri (~> 1.8, >= 1.8.4)
160161
padrino-helpers (0.12.9)
@@ -174,6 +175,7 @@ GEM
174175
public_suffix (4.0.5)
175176
puma (4.3.5)
176177
nio4r (~> 2.0)
178+
racc (1.5.2)
177179
rack (1.6.13)
178180
rack-jekyll (0.5.0)
179181
jekyll (>= 1.3)

_data/snippets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ github_oauth_access_rights: |
119119
120120
> Travis CI by travis-pro wants to access your [account name] account.
121121
122-
and in the repositorie's section it will state:
122+
and in the repositories section it will state:
123123
124124
> This application will be able to read and write all public and private repository data.
125125

user/billing-overview.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ With every build started, Travis CI keeps track of how many unique users trigger
137137

138138
| Area | Details |
139139
| :--- | --- |
140-
| **Payment** | Credits are paid in advance:<BR />1. Upon purchasing a Plan, an immediate charge is applied depending on credits allotment coming with a Plan.<BR />2. The additional credit addons can be purchased at any time and credits used only when you need them. Charge is applied immediately upon transaction.<BR /><BR />The user license cost is charged automatically in arrears, at the end of each billing period. The number of unique users trigerring a build is charged according to the license rates. |
140+
| **Payment** | Credits are paid in advance:<BR />1. Upon purchasing a Plan, an immediate charge is applied depending on credits allotment coming with a Plan.<BR />2. The additional credit addons can be purchased at any time and credits used only when you need them. Charge is applied immediately upon transaction.<BR /><BR />The user license cost is charged automatically in arrears, at the end of each billing period. The number of unique users trigerring a build is charged according to the license rates.<br /><br />The Free Plan assigned upon sign-up grants you unlimited users for free. |
141141
| **Private/Public repositories** | With Credits you can build over both private and public repositories. <BR/> With OSS Credits you can build only over public repositories. |
142142
| **Build job limits** | None or very high. <BR/><BR/>The Free Plan assigned automatically upon sign-up has a limit of 20 concurrent jobs. |
143143

@@ -148,6 +148,30 @@ With every build started, Travis CI keeps track of how many unique users trigger
148148
2. Navigate to the [Plans](https://travis-ci.com/account/plan) and make sure you have your billing and contact details filled in correctly.
149149
3. Contact [Travis CI support](mailto:[email protected]) requesting Usage based Plan.
150150

151+
## Premium Virtual Machines
152+
153+
Usage and Concurrency based plans allow you to choose the instance size, the build will run on. This can be done by setting a 'vm' property in the .travis.yml config. This property allows you to choose the Virtual machine instance for a build:
154+
```yaml
155+
vm:
156+
size: [medium|large|x-large|2x-large]
157+
```
158+
Available VM sizes are:
159+
160+
| size | vCPU | Memory GiB | Plan |
161+
|:---------:|:-----------:|:-----------:|:------------------------:|
162+
| medium | 2 | 8 | Standard/Pro/Concurrency |
163+
| large | 4 | 16 | Standard/Pro/Concurrency |
164+
| x-large | 8 | 32 | Standard/Pro/Concurrency |
165+
| 2x-large | 16 | 64 | Pro |
166+
167+
VM size property impacts the build minutes/credits usage:
168+
169+
| VM size | Credits per<br />started build minute |
170+
|:--------------------:|:-----------:|
171+
| medium | 50 |
172+
| large | 60 |
173+
| x-large | 70 |
174+
| 2x-large | 80 |
151175
152176
## Getting Help
153177

user/deployment/releases.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ travis setup releases --com
126126

127127
## Authenticating with an OAuth token
128128

129-
The recommended way to authenticate is to use a GitHub OAuth token. It must have the `public_repo` or `repo` scope to upload assets. Instead of setting it up manually, it is highly recommended to use `travis setup releases`, which automatically creates and encrypts a GitHub oauth token with the correct scopes.
129+
The recommended way to authenticate is to use a GitHub OAuth token. Instead of setting it up manually, it is highly recommended to use `travis setup releases`, which automatically creates and encrypts a GitHub OAuth token with the correct scopes.
130+
131+
If you can't use `travis setup releases`, you can set up the token manually with the following steps:
132+
1. Create a personal access token on the Github account. It must have the `public_repo` or `repo` scope to upload assets.
133+
2. Encrypt the token using Travis CLI: `travis encrypt [super_secret_token]`. Note that you must _not_ give the token a name in the encrypt command, as you might for an environment variable.
134+
3. Add the secure encrypted token to the deploy section of your `.travis.yml`, under the `api_key`.
130135

131136
This results in something similar to:
132137

@@ -142,7 +147,7 @@ deploy:
142147
```
143148
{: data-file=".travis.yml"}
144149

145-
**Warning:** the `public_repo` and `repo` scopes for GitHub oauth tokens grant write access to all of a user's (public) repositories. For security, it's ideal for `api_key` to have write access limited to only repositories where Travis deploys to GitHub releases. The suggested workaround is to create a [machine user](https://developer.github.com/v3/guides/managing-deploy-keys/#machine-users) — a dummy GitHub account that is granted write access on a per repository basis.
150+
**Warning:** the `public_repo` and `repo` scopes for GitHub OAuth tokens grant write access to all of a user's (public) repositories. For security, it's ideal for `api_key` to have the write access limited to only repositories where Travis deploys to GitHub releases. The suggested workaround is to create a [machine user](https://developer.github.com/v3/guides/managing-deploy-keys/#machine-users) — a dummy GitHub account that is granted write access on a per repository basis.
146151

147152
## Authentication with a Username and Password
148153

user/enterprise/tcie-3.x-setting-up-travis-ci-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Ubuntu 18.04 LTS or later as the underlying operating system.
7676
3. Set up your cluster/machine instances configuration - at least 1 virtual machine is needed (in microk8s scenario) or Kubernetes cluster prepared and started
7777
4. Install Replicated KOTS on *your local machine*. Please make sure that you can connect to the Kubernetes cluster.
7878
5. TCIE 3.x installed on **single** virtual machine instance
79-
1. On *your new virtual machine instance* run kurl.sh via 'curl https://kurl.sh/latest | sudo bash'
79+
1. On *your new virtual machine instance* run kurl.sh via `curl https://kurl.sh/latest | sudo bash`
8080
2. Get credentials from microk8s cluster running on *your new vm instance*. Please view e.g. [kurl documentation](https://kurl.sh/docs/install-with-kurl/connecting-remotely) where kubectl config with credentials is created and can be used afterwards.
8181
3. Please refer to various cluster and installation options in [kURL documentation](https://kurl.sh/docs/install-with-kurl/). Please adjust your setup and configuration according to your needs before progressing with TCIE 3.X installation
8282
6. TCIE 3.x installed as Kubernetes cluster in the cloud

user/languages/java.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ The list of available JVMs for different dists are at
204204
### Switching JDKs (Java 8 and below) Within One Job
205205

206206
If your build needs to switch JDKs (Java 8 and below) during a job, you can do so with
207-
`jdk_switcher use …`.
207+
[`jdk_switcher`](https://github.com/michaelklishin/jdk_switcher#what-jdk-switcher-is).
208208

209209
```yaml
210210
script:
@@ -253,16 +253,18 @@ jdk:
253253

254254
### Switching JDKs (to Java 10 and up) Within One Job
255255

256-
If your build needs to switch JDKs (Java 8 and up) during a job, you can do so with
257-
`install-jdk.sh`.
256+
If your build needs to switch JDKs (Java 10 and up) during a job, you can do so with
257+
[`install-jdk.sh`](https://sormuras.github.io/blog/2017-12-08-install-jdk-on-travis.html).
258258

259259
```yaml
260260
jdk: openjdk10
261261
script:
262262
- jdk_switcher use openjdk10
263263
- # do stuff with OpenJDK 10
264+
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
265+
- chmod +x $TRAVIS_BUILD_DIR/install-jdk.sh
264266
- export JAVA_HOME=$HOME/openjdk11
265-
- $TRAVIS_BUILD_DIR/install-jdk.sh --install openjdk11 --target $JAVA_HOME
267+
- $TRAVIS_BUILD_DIR/install-jdk.sh -F 11 --target $JAVA_HOME
266268
- # do stuff with open OpenJDK 11
267269
```
268270
{: data-file=".travis.yml"}

user/multi-cpu-architectures.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ The `.travis.yml` file above creates a 2x4 [build matrix](/user/customizing-the-
102102

103103
There are many options available and using the `matrix.include` key is essential to include any specific entries. For example, this matrix would route builds to the arm64 and amd64 architecture environments:
104104

105+
> Note that `group: edge` is required for `arm64-graviton2` architectures.
106+
105107
```yaml
106108
jobs:
107109
include:

user/reference/osx.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,19 @@ and later, use `xcode9.4` (or later).
9595
## Compilers and Build toolchain
9696

9797
- automake
98+
- clang
99+
- cmake
100+
- gcc
98101
- maven
99102
- mercurial
100103
- pkg-config
101104
- wget
102105
- xctool
103-
- cmake
104106

105107
## Languages
106108

109+
- C
110+
- C++
107111
- Go
108112
- Java
109113
- Nodejs

user/reference/windows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ cache:
143143

144144
This will download and install MSYS2 the first time, and store both the downloaded initial archive and the MSYS2 installation in your [build cache](/user/caching/#arbitrary-directories). Subsequent builds will avoid re-downloading the initial archive and will update the cached installation before use, and cache the updated installation upon success.
145145

146-
MSYS2 contains two noteworthy [subsystems](https://github.com/msys2/msys2/wiki/MSYS2-introduction#subsystems): "msys2" and "mingw64". The code above prepares the `$msys2` and `$mingw64` prefixes for entering the corresponding shells. As an example, the `$msys2` prefix is used to run `pacman` appropriately. Your build commands should use the `$mingw64` prefix to build native Windows programs, and the `$msys2` prefix to build POSIX-based programs requiring the MSYS2 DLL.
146+
MSYS2 contains two noteworthy [subsystems](https://www.msys2.org/wiki/MSYS2-introduction/#subsystems): "msys2" and "mingw64". The code above prepares the `$msys2` and `$mingw64` prefixes for entering the corresponding shells. As an example, the `$msys2` prefix is used to run `pacman` appropriately. Your build commands should use the `$mingw64` prefix to build native Windows programs, and the `$msys2` prefix to build POSIX-based programs requiring the MSYS2 DLL.
147147

148-
A point of caution: the pre-installed "mingw" Chocolatey package should **not** be used within any MSYS2 subsystem. (In fact, the above snippet uninstalls the "mingw" Chocolatey package to be safe.) Note that the [MSYS2 wiki](https://github.com/msys2/msys2/wiki/MSYS2-introduction#path) says:
148+
A point of caution: the pre-installed "mingw" Chocolatey package should **not** be used within any MSYS2 subsystem. (In fact, the above snippet uninstalls the "mingw" Chocolatey package to be safe.) Note that the [MSYS2 wiki](https://www.msys2.org/wiki/MSYS2-introduction/#path) says:
149149

150150
> Be aware that mixing in programs from other MSYS2 installations, Cygwin installations, compiler toolchains or even various other programs is not supported and will probably break things in unexpected ways.

user/triggering-builds.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ Trigger Travis CI builds using the API V3 by sending a POST request to `/repo/{s
1919
```
2020

2121
2. Send a request to the API. This example shell script sends a POST request to
22-
`/repo/travis-ci/travis-core/requests` to trigger a build of the most recent
23-
commit of the master branch of the `travis-ci/travis-core` repository:
22+
`/repo/travis-ci/travis-core/requests` to trigger a build of a specific
23+
commit (omit `sha` for most recent) of the master branch of the `travis-ci/travis-core` repository:
2424

2525
```bash
2626
body='{
2727
"request": {
2828
"branch":"master"
29+
"sha":"bf944c952724dd2f00ff0c466a5e217d10f73bea"
2930
}}'
3031

3132
curl -s -X POST \

0 commit comments

Comments
 (0)