remove travis

This commit is contained in:
Gerasimos (Makis) Maropoulos 2021-02-19 09:41:24 +02:00
parent 0081171aa6
commit 6587b387b6
No known key found for this signature in database
GPG Key ID: A771A828097B36C7
12 changed files with 76 additions and 7323 deletions

View File

@ -4,6 +4,7 @@ for f in ../../_examples/*; do
if [ -d "$f" ]; then if [ -d "$f" ]; then
# Will not run if no directories are available # Will not run if no directories are available
go mod init go mod init
go get -u github.com/kataras/iris/v12@master
go mod download go mod download
go run . go run .
fi fi

View File

@ -25,9 +25,13 @@ jobs:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Test
run: go test -v ./...
- name: Setup examples for testing - name: Setup examples for testing
run: ./.github/scripts/setup_examples_test.bash run: ./.github/scripts/setup_examples_test.bash
- name: Test examples - name: Test examples
continue-on-error: true
working-directory: _examples working-directory: _examples
run: go test -v -mod=mod -cover -race ./... run: go test -v -mod=mod -cover -race ./...

View File

@ -1,34 +0,0 @@
sudo: false
language: go
os:
- linux
- osx
go:
# We support the latest two major Go versions:
# https://golang.org/doc/devel/release.html
- 1.15.x
- 1.16.x
# - master
go_import_path: github.com/kataras/iris/v12
env:
global:
- GO111MODULE=on
addons:
hosts:
- mydomain.com
- www.mydomain.com
- myotherdomain.com
- mymy.com
- testdomain.com
- testdomain1.com
- testdomain2.com
install:
- go get ./...
script:
- go test -count=1 -v -cover -race ./...
after_script:
# examples
- cd ./_examples
- go test -v -mod=mod -cover -race ./...
- cd ../

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%
}

File diff suppressed because one or more lines are too long

View File

@ -38,8 +38,8 @@ func newApp() *iris.Application {
func main() { func main() {
app := newApp() app := newApp()
// http://localhost:8080/static/css/bootstrap.min.css // http://localhost:8080/static/css/main.css
// http://localhost:8080/static/js/jquery-2.1.1.js // http://localhost:8080/static/js/main.js
// http://localhost:8080/static/favicon.ico // http://localhost:8080/static/favicon.ico
app.Listen(":8080") app.Listen(":8080")
} }

View File

@ -61,8 +61,8 @@ func (r resource) loadFromBase(dir string) string {
} }
var urls = []resource{ var urls = []resource{
"/static/css/bootstrap.min.css", "/static/css/main.css",
"/static/js/jquery-2.1.1.js", "/static/js/main.js",
"/static/favicon.ico", "/static/favicon.ico",
} }

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ import (
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
// # to save it to your go.mod file // # to save it to your go.mod file
// $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/... // $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/...
// $ go run . // $ go run -mod=mod .
// Time to complete the compression and caching of [2/3] files: 31.9998ms // Time to complete the compression and caching of [2/3] files: 31.9998ms
// Total size reduced from 156.6 kB to: // Total size reduced from 156.6 kB to:
// br (22.9 kB) [85.37%] // br (22.9 kB) [85.37%]
@ -45,8 +45,8 @@ func newApp() *iris.Application {
func main() { func main() {
app := newApp() app := newApp()
// http://localhost:8080/static/css/bootstrap.min.css // http://localhost:8080/static/css/main.css
// http://localhost:8080/static/js/jquery-2.1.1.js // http://localhost:8080/static/js/main.js
// http://localhost:8080/static/favicon.ico // http://localhost:8080/static/favicon.ico
app.Listen(":8080") app.Listen(":8080")
} }

View File

@ -62,8 +62,8 @@ func (r resource) loadFromBase(dir string) string {
} }
var urls = []resource{ var urls = []resource{
"/static/css/bootstrap.min.css", "/static/css/main.css",
"/static/js/jquery-2.1.1.js", "/static/js/main.js",
"/static/favicon.ico", "/static/favicon.ico",
} }