Skip to content

Commit

Permalink
chore(dependencies): vendor in all dependencies
Browse files Browse the repository at this point in the history
Merge pull request #107 from qri-io/chore/vendor_deps
  • Loading branch information
b5 authored Nov 9, 2017
2 parents 1dfdff8 + 8d5bac7 commit 7bacc02
Show file tree
Hide file tree
Showing 7,115 changed files with 2,946,740 additions and 107 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
53 changes: 14 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,26 @@ jobs:
build:
working_directory: /go/src/github.com/qri-io/qri
docker:
- image: circleci/cci-demo-go-primary:0.0.2
- image: circleci/golang:1.9
environment:
GOLANG_ENV: test
PORT: 3000
DEBUG: false
environment:
TEST_RESULTS: /tmp/test-results
steps:
- checkout
- run:
name: Make test results directory
command: mkdir -p /tmp/test-reports/qri-io
- run: mkdir -p $TEST_RESULTS
- run: go get github.com/jstemmer/go-junit-report
- run:
name: Install dependencies
command: go-wrapper download && go-wrapper install && go get -v github.com/jstemmer/go-junit-report
- run:
name: Run tests
command: go test -v -race | tee /tmp/test-reports/qri-io/original.txt ; test ${PIPESTATUS[0]} -eq 0
- run:
name: Coverage tests
command: ./.circleci/cover.test.sh
- run:
name: Convert test output to junit-style xml
command: cat /tmp/test-reports/qri-io/original.txt | go-junit-report > /tmp/test-reports/qri-io/junit.xml
- store_test_results:
path: /tmp/test-reports/qri-io/junit.xml
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
- run:
name: Publish coverage info to codecov.io
command: bash <(curl -s https://codecov.io/bash)
# - setup_remote_docker
# - run:
# name: Install Docker client
# command: |
# if [ $CIRCLE_BRANCH = 'master' ]; then
# set -x
# VER="17.03.0-ce"
# curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
# tar -xz -C /tmp -f /tmp/docker-$VER.tgz
# mv /tmp/docker/* /usr/bin
# fi
# - run:
# name: Publish to Docker Hub
# command: |
# if [ $CIRCLE_BRANCH = 'master' ]; then
# TAG=0.1.$CIRCLE_BUILD_NUM
# docker build -t qri-io/qri:latest -t qri-io/qri:$TAG .
# docker login -u $DOCKER_USER -p $DOCKER_PASS
# docker push qri-io/qri:$TAG
# docker push qri-io/qri:latest
# fi
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
- store_test_results:
path: /tmp/test-results
3 changes: 2 additions & 1 deletion .circleci/cover.test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
# for d in $(go list ./... | grep -v vendor); do
for d in $(go list ./... | grep -v vendor | grep qri/core); do
go test -v -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
Expand Down
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GOFILES = $(shell find . -name '*.go' -not -path './vendor/*')
GOPACKAGES = $(shell go list ./... | grep -v /vendor/ | grep qri/core)

default: build

workdir:
mkdir -p workdir

build: workdir/qri

build-native: $(GOFILES)
go build -o workdir/native-qri .

workdir/qri: $(GOFILES)
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o workdir/qri .

test: test-all

test-all:
./.circleci/cover.test.sh
1 change: 0 additions & 1 deletion vendor/github.com/blevesearch/bleve
Submodule bleve deleted from 6eea5b
1 change: 0 additions & 1 deletion vendor/github.com/blevesearch/go-porterstemmer
Submodule go-porterstemmer deleted from 23a2c8
19 changes: 19 additions & 0 deletions vendor/github.com/blevesearch/go-porterstemmer/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 118 additions & 0 deletions vendor/github.com/blevesearch/go-porterstemmer/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7bacc02

Please sign in to comment.