Use the same .travis.yml on master and v2 (#462)

Use the same .travis.yml on master and v2
This commit is contained in:
Vytautas Šaltenis 2018-08-04 14:45:05 +03:00 committed by GitHub
parent 670777b536
commit e97f103314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 52 deletions

View File

@ -1,18 +1,17 @@
# Travis CI (http://travis-ci.org/) is a continuous integration service for sudo: false
# open source projects. This file configures it to run unit tests for
# blackfriday.
language: go language: go
go: go:
- 1.5 - "1.9.x"
- 1.6 - "1.10.x"
- 1.7 - tip
matrix:
fast_finish: true
allow_failures:
- go: tip
install: install:
- go get -d -t -v ./... - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
- go build -v ./...
script: script:
- go test -v ./... - go get -t -v ./...
- go test -run=^$ -bench=BenchmarkReference -benchmem - diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go test -v -race ./...

View File

@ -93,46 +93,46 @@ const (
// blockTags is a set of tags that are recognized as HTML block tags. // blockTags is a set of tags that are recognized as HTML block tags.
// Any of these can be included in markdown text without special escaping. // Any of these can be included in markdown text without special escaping.
var blockTags = map[string]struct{}{ var blockTags = map[string]struct{}{
"blockquote": struct{}{}, "blockquote": {},
"del": struct{}{}, "del": {},
"div": struct{}{}, "div": {},
"dl": struct{}{}, "dl": {},
"fieldset": struct{}{}, "fieldset": {},
"form": struct{}{}, "form": {},
"h1": struct{}{}, "h1": {},
"h2": struct{}{}, "h2": {},
"h3": struct{}{}, "h3": {},
"h4": struct{}{}, "h4": {},
"h5": struct{}{}, "h5": {},
"h6": struct{}{}, "h6": {},
"iframe": struct{}{}, "iframe": {},
"ins": struct{}{}, "ins": {},
"math": struct{}{}, "math": {},
"noscript": struct{}{}, "noscript": {},
"ol": struct{}{}, "ol": {},
"pre": struct{}{}, "pre": {},
"p": struct{}{}, "p": {},
"script": struct{}{}, "script": {},
"style": struct{}{}, "style": {},
"table": struct{}{}, "table": {},
"ul": struct{}{}, "ul": {},
// HTML5 // HTML5
"address": struct{}{}, "address": {},
"article": struct{}{}, "article": {},
"aside": struct{}{}, "aside": {},
"canvas": struct{}{}, "canvas": {},
"figcaption": struct{}{}, "figcaption": {},
"figure": struct{}{}, "figure": {},
"footer": struct{}{}, "footer": {},
"header": struct{}{}, "header": {},
"hgroup": struct{}{}, "hgroup": {},
"main": struct{}{}, "main": {},
"nav": struct{}{}, "nav": {},
"output": struct{}{}, "output": {},
"progress": struct{}{}, "progress": {},
"section": struct{}{}, "section": {},
"video": struct{}{}, "video": {},
} }
// Renderer is the rendering interface. This is mostly of interest if you are // Renderer is the rendering interface. This is mostly of interest if you are