mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
remove travis
This commit is contained in:
parent
0081171aa6
commit
6587b387b6
1
.github/scripts/setup_examples_test.bash
vendored
1
.github/scripts/setup_examples_test.bash
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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 ./...
|
||||||
|
|
34
.travis.yml
34
.travis.yml
|
@ -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
|
@ -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
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user