Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phadej/travis-meta-yaml
.travis.yml preprocessor
https://github.com/phadej/travis-meta-yaml
Last synced: 10 days ago
JSON representation
.travis.yml preprocessor
- Host: GitHub
- URL: https://github.com/phadej/travis-meta-yaml
- Owner: phadej
- License: bsd-3-clause
- Created: 2015-08-10T09:15:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T18:39:28.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T23:53:19.953Z (26 days ago)
- Language: Haskell
- Size: 56.6 KB
- Stars: 6
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# travis-meta-yaml
[![Build Status](https://travis-ci.org/phadej/travis-meta-yaml.svg?branch=master)](https://travis-ci.org/phadej/travis-meta-yaml)
[![Hackage](https://img.shields.io/hackage/v/travis-meta-yaml.svg)](http://hackage.haskell.org/package/travis-meta-yaml)## Motivation
```
language: haskell-multi-ghcenv:
- GHCVER=7.8.4 CABALVER=1.18
- GHCVER=7.10.1 CABALVER=1.22
- GHCVER=head CABALVER=1.22matrix:
fast_finish: true
allow_failures:
- env: GHCVER=head CABALVER=1.22branches:
only:
- master
```into
```
script:
- cabal configure --package-db=clear --package-db=global --package-db=$HOME/package-dbs/$GHCVER.d
--enable-tests
- cabal build
- cabal test
branches:
only:
- master
matrix:
fast_finish: true
include:
- env: GHCVER=7.8.4 CABALVER=1.18
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.18
- ghc-7.8.4
- libgmp-dev
- env: GHCVER=7.10.1 CABALVER=1.22
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-7.10.1
- libgmp-dev
- env: GHCVER=head CABALVER=1.22
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-head
- libgmp-dev
allow_failures:
- env: GHCVER=head CABALVER=1.22
install:
- cabal update
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
- ./init-custom-pkg-db.sh $HOME/package-dbs/$GHCVER.d
cache:
directories:
- ~/package-dbs
apt: true
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo
'?')]"
- cabal --version
language: c
sudo: false
```## Features
Interpolate environment variables into `addons` in `matrix.include`:
```yaml
env:
- CABALVER=1.18 GHCVER=7.8.4
- CABALVER=1.22 GHCVER=7.10.1
- CABALVER=1.22 GHCVER=headaddons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-$CABALVER
- ghc-$GHCVERmatrix:
allow_failures:
- env: CABALVER=1.22 GHCVER=head
```into
```yaml
matrix:
include:
- env: CABALVER=1.18 GHCVER=7.8.4
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.18
- ghc-7.8.4
- env: CABALVER=1.22 GHCVER=7.10.1
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-7.10.1
- env: CABALVER=1.22 GHCVER=head
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-head
allow_failures:
- env: CABALVER=1.22 GHCVER=head
```### Other
Any feature requests are welcome.