67d8492380
* Update view.jet.html * Update router.go * Create stats.go * Update view.jet.html * Update stats.go * Update stats.go * rollback * returns -1 by default * Update stats.go * Update stats.go * Import goscrape & torrent * copypaste stats.go from scrapers * travis * Update stats.go * Update stats.go * Put fresh stats into a <span> * Background-color for freshly fetched stats * ditto but for tomorrow * "Loading..." text in case it gets a bit too long * Stat fetching in controller (missing DB update) * Update last scraped date too * update torrent.Scrape tho it doesn't do anything * forgot to edit a name * Update scrape.go * Update stats.go * Update stats.go * flush cache to update stats in listing * Change function name * Update stats.go * Update stats.go * fix travis * Update view.jet.html * Update stats.go * Update stats.go * Update stats.go * Update stats.go * Update stats.go
35 lignes
1,6 Kio
YAML
35 lignes
1,6 Kio
YAML
language: go
|
|
go:
|
|
- tip
|
|
gobuild_args: -x -ldflags "-X main.buildversion=$(git rev-parse HEAD)"
|
|
before_install:
|
|
- sudo apt-get install gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 binutils-mingw-w64-i686
|
|
binutils-mingw-w64-x86-64 ansible
|
|
- go get -u github.com/tools/godep
|
|
- go get github.com/go-playground/overalls
|
|
- go get golang.org/x/tools/cmd/cover
|
|
- go get github.com/mattn/goveralls
|
|
- go get github.com/Stephen304/goscrape
|
|
- go get github.com/anacrolix/torrent
|
|
before_script:
|
|
- go vet
|
|
- go test -v ./...
|
|
after_success:
|
|
- overalls -project=github.com/NyaaPantsu/nyaa -covermode=count -debug
|
|
- goveralls -coverprofile="overalls.coverprofile" -service=travis-ci
|
|
install:
|
|
- export GOPATH="${TRAVIS_BUILD_DIR}/vendor:$GOPATH"
|
|
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
|
|
before_deploy:
|
|
- "./package.sh"
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: Nz2M3ZbQumKGVga/nnZnz1VXikRkGoLXk5FoH4uOl6GF6rlUNmtvJYs34LWF0/CMswBXNhjCggEaMMtZC+j66ZjoAdHBXRfrOb6jisNJRF6FNk7Kob6W3itCEOTvEL/8a+k2fI95cLqOXDLR2tIX03nchb8rDmVALs7P4gQgy2Y7UAo/aa/0G+OhsSJrlQWt0MT9OKGoIXpeKZjOG3wO/YwqfDwRTItuA9DLFoMQ0gwQfgT58t1ullbpM+jISni7rwfK+jUnZHjUH/VHLguVFmL4A1DxWriJXNOrZR+i/eUJ94mWvfI08WR8Qh3UCr58FrKoWvPsu7HnCq0bn6RvQtCKqx5zgv+R+kxKIP+79SVjKZUi1ghswAuwx9+AT6vHgPLXjJLpZj9Ap/KhfnQR6VT3jBT+kEpmv3J+57JcJCyD4ZslT+LGW2ul0uWoGCVVMBdHqMzuC8OSxpKCw6bFNWnLq+JAU08zlJkAAllBKev+LZWiF8GBICKfynRgViy+MKNaMfzIUNlL9UDskaiWP+BL9RXGLJ2FVdeKkzqdAYdYlgdJChQ56KTtRukR7FlOqDXhszIPxJhU9wn9lNXmGvq1FJyo1LRY3HX+5o9lWw+enaswNxFxdLBMXPhF5jehMkImiR4/YS4WdlmHcEfsli9sBOjBQh1iIpCfme77PPU=
|
|
script:
|
|
- "./package.sh"
|
|
file: dist/*.zip
|
|
skip_cleanup: true
|
|
overwrite: true
|
|
on:
|
|
tags: true
|