|
| 1 | +--- |
| 2 | +title: Minimal and Generic images |
| 3 | +layout: en |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## What This Guide Covers |
| 8 | + |
| 9 | +Travis CI supports many popular programming languages, but can never hope to support them all. `language: minimal` and `language: generic` are images running Ubuntu Trusty that are not tailored to any particular programming language. Both are available on both sudo-enabled and container-based infrastructure. As their names suggest, one is optimized be faster and use less disk space, the other to have more languages and services available. |
| 10 | + |
| 11 | +> Note that `language: minimal` is not the same as omitting the `language` key, if you do that the default language is set to Ruby. |
| 12 | +
|
| 13 | +<aside markdown="block" class="ataglance"> |
| 14 | + |
| 15 | +| Ruby | Default | |
| 16 | +|:------------------|:------------------------------------------------------------------| |
| 17 | +| Default `install` | N/A | |
| 18 | +| Default `script` | N/A | |
| 19 | +| Matrix keys | N/A | |
| 20 | +| Support | [Travis CI ](mailto:[email protected]?Subject=Minimal%20image) | |
| 21 | + |
| 22 | +Examples: |
| 23 | + |
| 24 | +```yaml |
| 25 | +language: minimal |
| 26 | +``` |
| 27 | +{: data-file=".travis.yml"} |
| 28 | +
|
| 29 | +
|
| 30 | +```yaml |
| 31 | +language: generic |
| 32 | +``` |
| 33 | +{: data-file=".travis.yml"} |
| 34 | +
|
| 35 | +</aside> |
| 36 | +
|
| 37 | +## Defaults |
| 38 | +
|
| 39 | +As neither `minimal` or `generic` are tailed to one particular language, there are no default `install` or `script` commands, so remember to configure these in your `.travis.yml`. |
| 40 | + |
| 41 | +## Minimal |
| 42 | + |
| 43 | +The `minimal` image contains: |
| 44 | + |
| 45 | +* [version control tools](/user/reference/trusty/#version-control) |
| 46 | +* [essential build tools such as gcc and make](/user/reference/trusty/#compilers--build-toolchain) |
| 47 | +* [network tools such as curl and essential](/user/reference/trusty/#networking-tools) |
| 48 | +* [Docker](/user/reference/trusty/#docker) |
| 49 | + |
| 50 | +## Generic |
| 51 | + |
| 52 | +The `generic` image contains everything from `minimal`, and also the usual databases, services and language runtimes: |
| 53 | + |
| 54 | +* [version control tools](/user/reference/trusty/#version-control) |
| 55 | +* [essential build tools such as gcc and make](/user/reference/trusty/#compilers--build-toolchain) |
| 56 | +* [network tools such as curl and essential](/user/reference/trusty/#networking-tools) |
| 57 | +* [Docker](/user/reference/trusty/#docker) |
| 58 | +* [databases and services](/user/reference/trusty/#databases-and-services) |
| 59 | +* [go](/user/reference/trusty/#go-images) |
| 60 | +* [jvm](/user/reference/trusty/#jvm-clojure-groovy-java-scala-images) |
| 61 | +* [node_js](/user/reference/trusty/#javascript-and-nodejs-images) |
| 62 | +* [php](/user/reference/trusty/#php-images) |
| 63 | +* [python](/user/reference/trusty/#python-images) |
| 64 | +* [ruby](/user/reference/trusty/#ruby-images) |
| 65 | + |
| 66 | +For specific details of what is on the image consult the [build update](/user/build-environment-updates/2017-12-12/#2017-12-12). |
| 67 | + |
| 68 | + |
| 69 | +## Aliases |
| 70 | + |
| 71 | +Setting the `language` key to `bash`, `sh` or `shell` is equivalent to `language: minimal`. |
0 commit comments