Skip to content

Commit

Permalink
chore(release): v0.1.0
Browse files Browse the repository at this point in the history
Merge pull request #193 from qri-io/v0.1.0
  • Loading branch information
b5 authored Jun 3, 2019
2 parents c5d509d + ea3fda2 commit 91b64ea
Show file tree
Hide file tree
Showing 13 changed files with 1,074 additions and 115 deletions.
57 changes: 14 additions & 43 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,33 @@ jobs:
build:
working_directory: /go/src/github.com/qri-io/dataset
docker:
- image: circleci/golang:1.11
environment:
GOLANG_ENV: test
PORT: 3000
- image: circleci/golang:1.12
environment:
TEST_RESULTS: /tmp/test-results
GO111MODULE: "on"
steps:
- checkout
- run: mkdir -p $TEST_RESULTS
- run: go get -v github.com/jstemmer/go-junit-report golang.org/x/lint/golint github.com/qri-io/dsdiff
- run:
name: Install non-gx deps
command: >
go get -v -d -u
github.com/ipfs/go-datastore
github.com/jbenet/go-base58
github.com/jinzhu/copier
github.com/multiformats/go-multihash
github.com/qri-io/compare
github.com/datatogether/cdxj
github.com/sergi/go-diff/diffmatchpatch
github.com/qri-io/varName
github.com/qri-io/jsonschema
github.com/ugorji/go/codec
github.com/ghodss/yaml
github.com/ipfs/go-log
gopkg.in/yaml.v2
github.com/360EntSecGroup-Skylar/excelize
- run:
name: Run Lint Tests
command: golint ./...
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ checksum "go.sum" }}
- run:
name: Install gx
command: >
go get -v -u
github.com/whyrusleeping/gx
github.com/whyrusleeping/gx-go
name: Get CI Deps
command: go get github.com/jstemmer/go-junit-report golang.org/x/lint/golint
- run:
name: Install gx deps
command: gx install
name: Lint
command: golint -set_exit_status ./...
- run:
name: Install gx-dependant packages
command: >
go get -v -d
github.com/qri-io/qfs
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- /go/src/gx/
name: Go Vet
command: go vet ./...
- run:
name: Run Tests
command: |
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
./.circleci/cover.test.sh | tee ${TEST_RESULTS}/go-test.out
make test | tee ${TEST_RESULTS}/go-test.out
- save_cache:
key: dependency-cache-{{ checksum "go.sum" }}
paths:
- /go/pkg/mod
- run:
name: Publish coverage info to codecov.io
command: bash <(curl -s https://codecov.io/bash)
Expand Down
12 changes: 0 additions & 12 deletions .circleci/cover.test.sh

This file was deleted.

208 changes: 208 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Let's keep all our changelog commands the same across all our packages:
update-changelog:
conventional-changelog -p angular -i CHANGELOG.md -s

test:
go test ./... -v --coverprofile=coverage.txt --covermode=atomic
2 changes: 0 additions & 2 deletions compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ func CompareSchemas(a, b map[string]interface{}) error {
// return fmt.Errorf("Fields: element %d: %s", i, err.Error())
// }
// }

return nil
}

// CompareCommits checks if all fields of a Commit are equal,
Expand Down
7 changes: 7 additions & 0 deletions dsfs/dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/qri-io/dataset/dstest"
"github.com/qri-io/qfs"
"github.com/qri-io/qfs/cafs"
ipfs_filestore "github.com/qri-io/qfs/cafs/ipfs"
)

// Test Private Key. peerId: QmZePf5LeXow3RW5U1AgEiNbW46YnRGhZ7HPvm1UmPFPwt
Expand All @@ -25,6 +26,12 @@ func init() {
panic(err)
}
testPk = data

// call LoadPlugins once with the empty string b/c we only rely on standard
// plugins
if err := ipfs_filestore.LoadPlugins(""); err != nil {
panic(err)
}
}

func TestLoadDataset(t *testing.T) {
Expand Down
7 changes: 6 additions & 1 deletion dsfs/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dsfs

import (
"os"
"io/ioutil"
"path/filepath"
"testing"

Expand Down Expand Up @@ -47,7 +48,11 @@ func TestPackageFilepath(t *testing.T) {

func makeTestIPFSRepo(path string) (fs *ipfsfs.Filestore, destroy func(), err error) {
if path == "" {
path = filepath.Join(os.TempDir(), ".ipfs")
tmp, err := ioutil.TempDir("", "temp-ipfs-repo")
if err != nil {
panic(err)
}
path = filepath.Join(tmp, ".ipfs")
}
err = ipfsfs.InitRepo(path, "")
if err != nil {
Expand Down
5 changes: 1 addition & 4 deletions dsio/xlsx.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ func (r *XLSXReader) ReadEntry() (Entry, error) {
if !r.r.Next() {
return Entry{}, io.EOF
}
cols, err := r.r.Columns()
if err != nil {
return Entry{}, err
}
cols := r.r.Columns()
vals, err := r.decode(cols)
if err != nil {
return Entry{}, err
Expand Down
21 changes: 21 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module github.com/qri-io/dataset

go 1.12

require (
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/ghodss/yaml v1.0.0
github.com/ipfs/go-datastore v0.0.5
github.com/ipfs/go-log v0.0.1
github.com/jinzhu/copier v0.0.0-20180308034124-7e38e58719c3
github.com/libp2p/go-libp2p-crypto v0.0.2
github.com/mr-tron/base58 v1.1.2
github.com/multiformats/go-multihash v0.0.5
github.com/qri-io/compare v0.1.0
github.com/qri-io/dsdiff v0.1.1
github.com/qri-io/jsonschema v0.1.1
github.com/qri-io/qfs v0.1.0
github.com/qri-io/varName v0.1.0
github.com/ugorji/go v1.1.4
gopkg.in/yaml.v2 v2.2.2
)
Loading

0 comments on commit 91b64ea

Please sign in to comment.