Browse Source

Merge commit 'e227fece31f5ab54618fbf6984d537f718cd52f7'

tags/v0.2.3.0
Peter J. Jones 2 years ago
parent
commit
52e7a84fb5
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49

+ 87
- 0
vendor/themoviedb/.travis.yml View File

@@ -0,0 +1,87 @@
# This Travis job script has been generated by a script via
#
# make_travis_yml_2.hs 'themoviedb.cabal'
#
# For more information, see https://github.com/hvr/multi-ghc-travis
#
language: c
sudo: false

git:
submodules: false # whether to recursively clone submodules

cache:
directories:
- $HOME/.cabal/packages
- $HOME/.cabal/store

before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
# remove files that are regenerated by 'cabal update'
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx

matrix:
include:
- compiler: "ghc-7.8.4"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.8.4], sources: [hvr-ghc]}}
- compiler: "ghc-7.10.3"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.3], sources: [hvr-ghc]}}
- compiler: "ghc-8.0.1"
# env: TEST=--disable-tests BENCH=--disable-benchmarks
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.1], sources: [hvr-ghc]}}

before_install:
- HC=${CC}
- unset CC
- PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
- PKGNAME='themoviedb'

install:
- cabal --version
- echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
- BENCH=${BENCH---enable-benchmarks}
- TEST=${TEST---enable-tests}
- travis_retry cabal update -v
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
- rm -fv cabal.project.local
- "echo 'packages: .' > cabal.project"
- rm -f cabal.project.freeze
- cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all

# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
script:
- if [ -f configure.ac ]; then autoreconf -i; fi
- rm -rf dist/
- cabal sdist # test that a source-distribution can be generated
- cd dist/
- SRCTAR=(${PKGNAME}-*.tar.gz)
- SRC_BASENAME="${SRCTAR/%.tar.gz}"
- tar -xvf "./$SRC_BASENAME.tar.gz"
- cd "$SRC_BASENAME/"
## from here on, CWD is inside the extracted source-tarball
- rm -fv cabal.project.local
- "echo 'packages: .' > cabal.project"
# this builds all libraries and executables (without tests/benchmarks)
- rm -f cabal.project.freeze
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
# this builds all libraries and executables (including tests/benchmarks)
# - rm -rf ./dist-newstyle
- cabal new-build -w ${HC} ${TEST} ${BENCH} all

# there's no 'cabal new-test' yet, so let's emulate for now
- TESTS=( $(awk 'tolower($0) ~ /^test-suite / { print $2 }' *.cabal) )
- if [ "$TEST" != "--enable-tests" ]; then TESTS=(); fi
- shopt -s globstar;
RC=true; for T in ${TESTS[@]}; do echo "== $T ==";
if dist-newstyle/build/**/$SRC_BASENAME/**/build/$T/$T; then echo "= $T OK =";
else echo "= $T FAILED ="; RC=false; fi; done; $RC

# EOF

+ 4
- 1
vendor/themoviedb/CHANGES.md View File

@@ -1,10 +1,13 @@
# Version History

## 1.1.3.0 (March 18, 2017)
## 1.1.3.0 (March 19, 2017)

- Widen dependencies for LTS-7.20

- Build with latest Hackage too!

- Add Travis CI build status for supported versions of GHC

## 1.1.2.0 (June 9, 2016)

- Widen dependencies for LTS-5.15

+ 1
- 1
vendor/themoviedb/LICENSE View File

@@ -1,6 +1,6 @@
# Copyright and Authors

Copyright (C) 2012-2016 Peter Jones <pjones@devalot.com>
Copyright (C) 2012-2017 Peter Jones <pjones@devalot.com>

# License (MIT)


+ 3
- 1
vendor/themoviedb/README.md View File

@@ -1,5 +1,7 @@
# TheMovieDB API for Haskell

[![Build Status](https://travis-ci.org/pjones/themoviedb.svg?branch=master)](https://travis-ci.org/pjones/themoviedb)

This is a simple library that provides functions for retrieving movie
metadata from [TheMovieDB][] API. To use this library you need to
request an API key from TheMovieDB. Follow the directions on the
@@ -12,7 +14,7 @@ request an API key from TheMovieDB. Follow the directions on the

See the [Network.API.TheMovieDB][] module for complete documentation.

[Network.API.TheMovieDB]: https://github.com/pjones/themoviedb/blob/master/Network/API/TheMovieDB.hs
[Network.API.TheMovieDB]: https://github.com/pjones/themoviedb/blob/master/src/Network/API/TheMovieDB.hs

# Example


+ 2
- 2
vendor/themoviedb/themoviedb.cabal View File

@@ -8,10 +8,10 @@ license: MIT
license-file: LICENSE
author: Peter Jones <pjones@devalot.com>
maintainer: Peter Jones <pjones@devalot.com>
copyright: Copyright: (c) 2012-2015 Peter Jones
copyright: Copyright: (c) 2012-2017 Peter Jones
category: Network, API
stability: experimental
tested-with: GHC == 7.8.4, GHC == 7.10.1
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
build-type: Simple
cabal-version: >=1.10
description: This library provides functions for retrieving metadata

Loading…
Cancel
Save