before_script
parent
3e78d45366
commit
135a12ee30
10
.travis.yml
10
.travis.yml
|
@ -9,14 +9,6 @@ install:
|
|||
- go get github.com/mholt/caddy/caddyhttp
|
||||
|
||||
before_script:
|
||||
- mkdir $GOPATH/src/caddy
|
||||
- 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
|
||||
|
||||
- ./before_script.sh
|
||||
script:
|
||||
- go build caddy
|
||||
|
|
|
@ -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