@@ -1,47 +0,0 @@
1−#!/usr/bin/env bash
2−
3−set -e
4−
5−docs=( documentation )
6−core=( gogol-core gogol )
7−
8−priority_=( oauth2 compute drive youtube translate )
9−priority=${priority_[@]/#/gogol-}
10−
11−library_=( $(ls -d gogol-*) )
12−library=( $(echo ${library_[@]} ${priority[@]} | tr ' ' '\n' | sort | uniq -u) )
13−
14−entry() {
15− local ver="$1"
16− local lib="$2"
17−
18−cat <<-ENTRY
19− - env: GHCVER=${ver} LIBRARY=${lib}
20− addons: { apt: { packages: [ghc-${ver}], sources: [hvr-ghc] } }
21−ENTRY
22−}
23−
24−matrix() {
25− local title="$1"
26− declare -a versions=("${!2}")
27− declare -a selected=("${!3}")
28−
29−cat <<-TITLE
30−
31− # ${title}
32−TITLE
33−
34− for lib in ${selected[@]}; do
35− for ver in ${versions[@]}; do
36− entry $ver $lib
37− done
38− done
39−}
40−
41−ghc_710=( 7.10.2 )
42−ghc_all=( 7.10.2 7.8.4 )
43−
44−matrix "Documentation" ghc_710[@] docs[@]
45−matrix "Core" ghc_all[@] core[@]
46−matrix "Priority" ghc_all[@] priority[@]
47−matrix "Remainder" ghc_710[@] library[@]