mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
before_script
This commit is contained in:
parent
3e78d45366
commit
135a12ee30
10
.travis.yml
10
.travis.yml
@ -9,14 +9,6 @@ install:
|
|||||||
- go get github.com/mholt/caddy/caddyhttp
|
- go get github.com/mholt/caddy/caddyhttp
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir $GOPATH/src/caddy
|
- ./before_script.sh
|
||||||
- touch $GOPATH/src/caddy/main.go
|
|
||||||
- echo 'package main
|
|
||||||
import "github.com/mholt/caddy/caddy/caddymain"
|
|
||||||
import "github.com/hacdias/caddy-hugo"
|
|
||||||
func main() {
|
|
||||||
caddymain.Run()
|
|
||||||
}' >> $GOPATH/src/caddy/main.go
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go build caddy
|
- go build caddy
|
||||||
|
13
before_script.sh
Normal file
13
before_script.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
mkdir $GOPATH/src/caddy
|
||||||
|
touch $GOPATH/src/caddy/main.go
|
||||||
|
|
||||||
|
cat << 'EOF' >> $GOPATH/src/caddy/main.go
|
||||||
|
package main\n
|
||||||
|
import "github.com/mholt/caddy/caddy/caddymain"
|
||||||
|
import "github.com/hacdias/caddy-hugo"
|
||||||
|
func main() {
|
||||||
|
caddymain.Run()
|
||||||
|
}
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user