Skip to content

Commit 6dcae6a

Browse files
authored
Merge branch 'master' into DU-35/Remove-mac
2 parents a6b8098 + 31ff1ee commit 6dcae6a

16 files changed

+554
-503
lines changed

_data/snippets.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ all_note: |
3232
> * [Bionic](/user/reference/bionic/)
3333
> * [Focal](/user/reference/focal/)
3434
> * [Jammy](/user/reference/jammy/)
35+
> * [Noble](/user/reference/noble/)
3536
> * [macOS](/user/reference/osx/)
3637
> * [Windows](/user/reference/windows/)
3738
> * [FreeBSD](/user/reference/freebsd/)
@@ -44,6 +45,7 @@ unix_note: |
4445
> * [Bionic](/user/reference/bionic/)
4546
> * [Focal](/user/reference/focal/)
4647
> * [Jammy](/user/reference/jammy/)
48+
> * [Noble](/user/reference/noble/)
4749
> * [macOS](/user/reference/osx/)
4850
> * [FreeBSD](/user/reference/freebsd/)
4951
linux_note: |
@@ -55,6 +57,7 @@ linux_note: |
5557
> * [Bionic](/user/reference/bionic/)
5658
> * [Focal](/user/reference/focal/)
5759
> * [Jammy](/user/reference/jammy/)
60+
> * [Noble](/user/reference/noble/)
5861
linux_windows_note: |
5962
> For Language versions and other build-environment specific
6063
> information visit our reference pages:
@@ -64,6 +67,7 @@ linux_windows_note: |
6467
> * [Bionic](/user/reference/bionic/)
6568
> * [Focal](/user/reference/focal/)
6669
> * [Jammy](/user/reference/jammy/)
70+
> * [Noble](/user/reference/noble/)
6771
> * [Windows](/user/reference/windows/)
6872
> * [FreeBSD](/user/reference/freebsd/)
6973
concurrent_jobs: |

user/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ jobs should use.
437437
These factors are:
438438

439439
1. OS name (currently, `linux`, `osx`, or `windows`)
440-
2. OS distribution (for Linux, `focal`, `bionic`, `xenial`, `trusty`, or `precise`)
440+
2. OS distribution (for Linux, `noble`, `jammy`, `focal`, `bionic`, `xenial`, `trusty`, or `precise`)
441441
3. macOS image name (e.g., `xcode7.2`)
442442
4. Names and values of visible environment variables set in `.travis.yml` or Settings panel
443443
5. Language runtime version (for the language specified in the `language` key) if applicable

user/common-build-problems.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,3 +664,27 @@ env:
664664
- NODE_OPTIONS="--dns-result-order=ipv4first"
665665
```
666666
{: data-file=".travis.yml"}
667+
668+
## **NPM Semantic Release Issue**: Fixes semantic-release `EGITNOPERMISSION` from GitHub
669+
670+
If you're using NPM and you're deploying with semantic-release and you get the `EGITNOPERMISSION` error at the end of your build, you may want to try and add the following to your build definition:
671+
672+
The first example is if you're using `npx semantic-release` within the deploy phase in the `.travis.yml` definition:
673+
674+
```yml
675+
before_deploy:
676+
- git config --global credential.helper store
677+
- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
678+
```
679+
680+
The second example would be if you're using `npx semantic-release` directly in your script phase of your `.travis.yml` build definition:
681+
682+
```yml
683+
before_script:
684+
- git config --global credential.helper store
685+
- git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
686+
```
687+
For more information please look at this [GitHub Issue](https://github.com/semantic-release/semantic-release/issues/3590).
688+
689+
{: data-file=".travis.yml"}
690+

user/languages/android.md

Lines changed: 59 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ Android builds are not available on the macOS environment.
1414

1515
### Overview
1616

17-
> Android builds are officially supported only on our Trusty Build environment at this time; hence, you'll need to explicitly specify `dist: trusty` in your .travis.yml file.
17+
> Android builds are officially supported on our Bionic, Focal, and Jammy build environments; hence, you'll need to explicitly specify `dist: bionic`, `dist: focal`, or `dist: jammy` in your .travis.yml file.
1818
1919
Travis CI environment provides a large set of build tools for JVM languages with [multiple JDKs, Ant, Gradle, Maven](/user/languages/java/#overview), [sbt](/user/languages/scala/#projects-using-sbt) and [Leiningen](/user/languages/clojure/).
2020

2121
By setting
2222

2323
```yaml
2424
language: android
25-
dist: trusty
25+
dist: focal # or dist: jammy, dist: bionic
2626
```
2727
{: data-file=".travis.yml"}
2828
29-
in your `.travis.yml` file, your project will be built in the Android environment which provides [Android SDK Tools](http://developer.android.com/tools/sdk/tools-notes.html) 25.2.3.
29+
in your `.travis.yml` file, your project will be built in the Android environment which provides [Android SDK Tools](http://developer.android.com/tools/sdk/tools-notes.html).
3030

3131
Here is an example `.travis.yml` for an Android project:
3232

3333
```yaml
3434
language: android
35-
dist: trusty
35+
dist: focal
3636
android:
3737
components:
3838
# Uncomment the lines below if you want to
@@ -41,10 +41,10 @@ android:
4141
# - platform-tools
4242
4343
# The BuildTools version used by your project
44-
- build-tools-26.0.2
44+
- build-tools-30.0.0
4545
4646
# The SDK version used to compile your project
47-
- android-26
47+
- android-30
4848
4949
# Additional components
5050
- extra-google-google_play_services
@@ -53,7 +53,7 @@ android:
5353
5454
# Specify at least one system image,
5555
# if you need to run emulator(s) during your tests
56-
- sys-img-x86-android-26
56+
- sys-img-x86-android-30
5757
- sys-img-armeabi-v7a-android-17
5858
```
5959
{: data-file=".travis.yml"}
@@ -64,28 +64,60 @@ In your `.travis.yml`, you can define the list of SDK components to be installed
6464

6565
```yaml
6666
language: android
67-
dist: trusty
67+
dist: focal
6868
android:
6969
components:
70-
- build-tools-26.0.2
71-
- android-26
72-
- extra
70+
- build-tools-30.0.0
71+
- android-30
72+
- extras;google;google_play_services
73+
- extras;google;m2repository
74+
- extras;android;m2repository
7375
```
7476
{: data-file=".travis.yml"}
7577

7678
The exact component names must be specified (filter aliases like `add-on` or `extra` are also accepted). To get a list of available exact component names and descriptions run the command `sdkmanager --list` (preferably in your local development machine).
7779

80+
Here are specific extra components you can install:
81+
82+
```yaml
83+
android:
84+
components:
85+
# Google Play services
86+
- extras;google;google_play_services
87+
88+
# Google Repository
89+
- extras;google;m2repository
90+
91+
# Android Support Repository
92+
- extras;android;m2repository
93+
94+
# Android Support Library
95+
- extras;android;support
96+
97+
# Google Analytics libraries
98+
- extras;google;analytics_sdk_v2
99+
100+
# Google Cloud Messaging libraries
101+
- extras;google;gcm
102+
103+
# Google USB Driver (Windows only)
104+
- extras;google;usb_driver
105+
106+
# Intel x86 Emulator Accelerator (HAXM installer)
107+
- extras;intel;Hardware_Accelerated_Execution_Manager
108+
```
109+
78110
#### Deal with Licenses
79111

80112
By default, Travis CI will accept all the requested licenses, but it is also possible to define a white list of licenses to be accepted, as shown in the following example:
81113

82114
```yaml
83115
language: android
84-
dist: trusty
116+
dist: focal
85117
android:
86118
components:
87-
- build-tools-26.0.2
88-
- android-26
119+
- build-tools-30.0.0
120+
- android-30
89121
- add-on
90122
- extra
91123
licenses:
@@ -103,22 +135,20 @@ While the following components are preinstalled, the exact list may change witho
103135

104136
- tools
105137
- platform-tools
106-
- build-tools-25.0.2
107-
- android-25
108-
- extra-google-google_play_services
109-
- extra-google-m2repository
110-
- extra-android-m2repository
138+
- build-tools;30.0.0
139+
- platforms;android-30
140+
- extras;google;google_play_services
141+
- extras;google;m2repository
142+
- extras;android;m2repository
111143

112144
### Create and Start an Emulator
113145

114-
**Warning:** At the moment, these steps are not fully supported by Travis CI Android builder.
115-
116-
If you feel adventurous, you may use the script [`/usr/local/bin/android-wait-for-emulator`](https://github.com/travis-ci/travis-cookbooks/blob/precise-stable/ci_environment/android-sdk/files/default/android-wait-for-emulator) and adapt your `.travis.yml` to make this emulator available for your tests. For example:
146+
If you need to use an emulator for your tests, you can use the script [`/usr/local/bin/android-wait-for-emulator`](https://github.com/travis-ci/travis-cookbooks/blob/precise-stable/ci_environment/android-sdk/files/default/android-wait-for-emulator) and adapt your `.travis.yml` to make this emulator available for your tests. For example:
117147

118148
```yaml
119149
# Emulator Management: Create, Start and Wait
120150
before_script:
121-
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a -c 100M
151+
- echo no | android create avd --force -n test -t android-30 --abi armeabi-v7a -c 100M
122152
- emulator -avd test -no-audio -no-window &
123153
- android-wait-for-emulator
124154
- adb shell input keyevent 82 &
@@ -133,7 +163,7 @@ If your project is built with Ant or any other build tool that does not automati
133163

134164
```yaml
135165
language: android
136-
dist: trusty
166+
dist: focal
137167
install: ant deps
138168
```
139169
{: data-file=".travis.yml"}
@@ -198,9 +228,9 @@ As for any JVM language, it is also possible to [test against multiple JDKs](/us
198228

199229
For Android projects, `env` and `jdk` can be given as arrays to construct a build matrix.
200230

201-
## Build Android projects on new build environments
231+
## Build Android projects on different build environments
202232

203-
The `dist: trusty` build environment is the only supported build environment for Android but if you would like to build on newer build environments e.g. `dist: jammy`, you can exercise your access to the Travis CI build environments and install required packages and tools. An example .travis.yml config can be reviewed below:
233+
Android projects are supported on `dist: bionic`, `dist: focal`, and `dist: jammy` build environments. If you have specific requirements for other build environments, you can install required packages and tools as shown in this example:
204234

205235
```yaml
206236
os: linux
@@ -227,15 +257,15 @@ before_install:
227257
install:
228258
# INSTALL REQUIRED ANDROID SDK TOOLS
229259
- sdkmanager --sdk_root=$ANDROID_HOME --list | awk '/Installed/{flag=1; next} /Available/{flag=0} flag'
230-
- yes | sdkmanager --sdk_root=$ANDROID_HOME --install "platform-tools" "platforms;android-33" "build-tools;33.0.2" "emulator" "system-images;android-33;google_apis;x86_64"
260+
- yes | sdkmanager --sdk_root=$ANDROID_HOME --install "platform-tools" "platforms;android-30" "build-tools;30.0.0" "emulator" "system-images;android-30;google_apis;x86_64"
231261
- sdkmanager --list --sdk_root=$ANDROID_HOME | awk '/Installed/{flag=1; next} /Available/{flag=0} flag'
232262
# CREATE AVD
233-
- echo "no" | avdmanager --verbose create avd --force --name "my_android_33" --package "system-images;android-33;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
263+
- echo "no" | avdmanager --verbose create avd --force --name "my_android_30" --package "system-images;android-30;google_apis;x86_64" --tag "google_apis" --abi "x86_64"
234264
- sudo chmod -R 777 /dev/kvm
235265
# Start emulator in background and wait for it to start
236266
- adb kill-server && adb start-server &
237267
- sleep 15 # sleep values may require adjusting depending on the specific build environment
238-
- emulator @my_android_33 -no-audio -no-window &
268+
- emulator @my_android_30 -no-audio -no-window &
239269
- sleep 60
240270
241271
script:

user/languages/java.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ details.
181181

182182
The list of available JVMs for different dists are at
183183

184+
* [JDKs installed for **Noble**](/user/reference/noble/#jvm-clojure-groovy-java-scala-support)
185+
* [JDKs installed for **Jammy**](/user/reference/jammy/#jvm-clojure-groovy-java-scala-support)
184186
* [JDKs installed for **Focal**](/user/reference/focal/#jvm-clojure-groovy-java-scala-support)
185187
* [JDKs installed for **Bionic**](/user/reference/bionic/#jvm-clojure-groovy-java-scala-support)
186188
* [JDKs installed for **Xenial**](/user/reference/xenial/#jvm-clojure-groovy-java-scala-support)

user/languages/minimal-and-generic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ layout: en
99

1010
Travis CI supports many popular programming languages but can never hope to support them all. This guide covers how to use minimal and generic images.
1111

12-
`language: minimal` and `language: generic` are images available in Ubuntu Focal `dist: focal`, Ubuntu Bionic `dist: bionic`, Ubuntu Xenial `dist: xenial`, and Ubuntu Trusty `dist:trusty`, that are not tailored to any particular programming language. As their names suggest, `language: minimal` is optimized to be faster and use less disk space, and `language: generic` has more languages and services available.
12+
`language: minimal` and `language: generic` are images available in Ubuntu Noble `dist: noble`, Ubuntu Jammy `dist: jammy`, Ubuntu Focal `dist: focal`, Ubuntu Bionic `dist: bionic`, Ubuntu Xenial `dist: xenial`, and Ubuntu Trusty `dist:trusty`, that are not tailored to any particular programming language. As their names suggest, `language: minimal` is optimized to be faster and use less disk space, and `language: generic` has more languages and services available.
1313

1414
> Note that `language: minimal` is not the same as omitting the `language` key, if you do that the default language is set to Ruby.
1515

user/onboarding.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Go to [Travis-ci.com](https://app.travis-ci.com) and [*Sign-in with your preferr
2525

2626
![Travis CI Sign-in](/user/images/onboarding-travis-sign-in.png)
2727

28-
2. **Accept Travis CI Authorization**.
28+
1. **Accept Travis CI Authorization**.
2929

3030
Once redirected to your chosen platform, log into your account and accept Travis CI’s authorization request.
3131

@@ -36,29 +36,25 @@ Once redirected to your chosen platform, log into your account and accept Travis
3636
* [BitBucket permissions used by Travis CI](/user/bb-oauth-scopes/)
3737
* [GitLab permissions used by Travis CI](/user/gl-oauth-scopes/)
3838

39-
3. **Verify your email account**.
40-
41-
Travis CI sends a verification email. Check your email and verify your account to continue. Otherwise, you will have limited build functions.
42-
43-
4. **Select a Plan**.
39+
1. **Select a Plan**.
4440

4541
Choose the best plan for you, or get started with our Trial Plan.
4642

4743
![Plan Selection](/user/images/onboarding-select-plan.png)
4844

49-
5. **Credit Card Validation**.
45+
1. **Credit Card Validation**.
5046

5147
To commence the selected plan, you must first insert your billing information and a valid Credit Card.
5248

5349
![Payment Screen](/user/images/onboarding-payment.png)
5450

5551
> **Note**: For Trial Plans, credit card authorization may result in a small fee being held on the card for a short duration. Trial Plan users are granted a small allotment of trial credits to be used within the next 14 days.
5652
57-
6. **Settings configurations**.
53+
1. **Settings configurations**.
5854

5955
In your Travis Dashboard, click on your profile picture at the top right and select the Settings option to see a list of your available repositories.
6056

61-
7. **Select repositories**.
57+
1. **Select repositories**.
6258

6359
Click the **Manage Repositories** button. Once directed to your chosen platform, select the repositories you want to use with Travis CI.
6460

@@ -67,6 +63,13 @@ Click the **Manage Repositories** button. Once directed to your chosen platform,
6763
> Depending on your chosen platform, you can also make this selection with the authorization message by clicking the *Activate all repositories* button on the Getting Started page to activate all your repos.
6864
6965

66+
### GitHub Student Developer Pack users
67+
68+
If you use a GitHub account and are eligible for the GitHub Student Developer Pack, the Travis CI plan might not be assigned automatically. This occurs because the user already has a plan assigned in Travis CI.
69+
70+
If you wish to use the free allowance for the GitHub Student Developer Pack instead, please [contact our support team](mailto:[email protected]), provide your GitHub handle, and request the assignment of the respective plan.
71+
72+
7073
## Add a .travis.yml File
7174

7275
The next step is to add a `.travis.yml` file to your repository to tell Travis CI what to do. The following example specifies a Ruby project built with Ruby 2.2 and the latest version of JRuby.

user/open_source_license.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,29 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRA
174174
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
175175
OTHER DEALINGS IN THE SOFTWARE.
176176

177+
### POXA MIT License
178+
179+
**Copyright (c) 2013-2018 Eduardo Gurgel Pinho**
180+
181+
Permission is hereby granted, free of charge, to any person obtaining
182+
a copy of this software and associated documentation files (the
183+
"Software"), to deal in the Software without restriction, including
184+
without limitation the rights to use, copy, modify, merge, publish,
185+
distribute, sublicense, and/or sell copies of the Software, and to
186+
permit persons to whom the Software is furnished to do so, subject to
187+
the following conditions:
188+
189+
The above copyright notice and this permission notice shall be
190+
included in all copies or substantial portions of the Software.
191+
192+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
193+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
194+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
195+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
196+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
197+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
198+
199+
177200
## BSD Licenses
178201
### AMQP091-Go BSD License
179202

0 commit comments

Comments
 (0)