Skip to content

Commit

Permalink
updating travis stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
clrnd committed Feb 16, 2018
1 parent d38f87d commit 9eb9c60
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install:
- stack install --system-ghc --no-terminal

script:
- echo "Done!"
- discogs2pg --help

deploy:
provider: releases
Expand All @@ -31,3 +31,4 @@ deploy:
file: "$HOME/.local/bin/discogs2pg"
on:
repo: alvare/discogs2pg
tags: true
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Discogs to PostgreSQL
=====================

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

Import [Discogs' data dumps](http://www.discogs.com/data/) into Postgres efficiently.

Uses [Hexpat](http://hackage.haskell.org/package/hexpat) for parsing XML
Expand Down Expand Up @@ -37,14 +39,14 @@ Supposing we downloaded the 20150810 dump:
* discogs_20150810_masters.xml.gz
* discogs_20150810_releases.xml.gz

and we didn't decompress them, then we can do:
and we didn't decompress them, then we can run on the repo's directory:

```
$ createdb discogs
$ psql discogs < source_dir/sql/tables.sql
$ psql discogs < sql/tables.sql
$ discogs2pg -g -d 20150810 -c dbname=discogs
$ # wait an hour or two ...
$ psql discogs < source_dir/sql/indexes.sql
$ psql discogs < sql/indexes.sql
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion discogs2pg.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: discogs2pg
version: 0.1.0.0
version: 0.3
synopsis: Parse Discogs XML dumps into postgresql
description: Please see README.md
homepage: http://github.com/alvare/discogs2pg
Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ flags: {}
packages:
- '.'
extra-deps:
- hexpat-0.20.9
- List-0.5.2
- hexpat-0.20.13
- List-0.6.2
resolver: lts-9.17

0 comments on commit 9eb9c60

Please sign in to comment.