Skip to content

Commit

Permalink
small mods (#374) [ci skip]
Browse files Browse the repository at this point in the history
* updates go testings

* removes exec bit on LICENCE

* requested fixes
  • Loading branch information
mathieu-aubin authored and Xinzhao Xu committed Feb 1, 2019
1 parent 7136961 commit 705ee1a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .gitignore
Expand Up @@ -10,15 +10,22 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
coverage.txt

# Python
*.pyc

.vscode
.idea
dist/
github_token
.github_token
*_token
downloader/*.jpg

# Ignore compiled binaries
# - native
annie
# - gox builds
annie_*

# macOS
.DS_Store
Empty file modified LICENSE 100755 → 100644
Empty file.
20 changes: 13 additions & 7 deletions go.test.sh
@@ -1,12 +1,18 @@
#!/usr/bin/env bash
#!/bin/bash

set -e
echo "" > coverage.txt
#set -x # debug/verbose execution

# Ensures removal of file
trap 'rm -f profile.out downloader/*.{mp4,download,jpg}' SIGINT EXIT

# go -race needs CGO_ENABLED to proceed
export CGO_ENABLED=1;

for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
go test -v -race -coverprofile=profile.out -covermode=atomic "${d}"
if [ -f profile.out ]; then
cat profile.out > coverage.txt
rm profile.out
fi
done

0 comments on commit 705ee1a

Please sign in to comment.