update
parent
9cb97222fe
commit
9d0c002d92
|
@ -18,10 +18,10 @@ install:
|
||||||
script:
|
script:
|
||||||
- caddydev --output="caddy" --source="." hugo
|
- caddydev --output="caddy" --source="." hugo
|
||||||
- go test ./...
|
- go test ./...
|
||||||
- bash automate.sh
|
- bash dist/automate.sh
|
||||||
deploy:
|
deploy:
|
||||||
provider: bintray
|
provider: bintray
|
||||||
file: bintray.json
|
file: dist/bintray.json
|
||||||
user: hacdias
|
user: hacdias
|
||||||
key:
|
key:
|
||||||
secure: gzIpZj4UTnvcpyY3d6+9IThG/5S0vcdvu+/E0fgeryWzKvJVOUFYCNsP1TeFgi3fd64vb+p17UoHA1I6QLc8BPAYpUEGY11JZlSHE13ScAcYSd97IhixL5DMnNWQLGCHoE4v1cUwSKyZYOu9vsjCgZf2JwhJHDMzNMH+5JQxMJcA4A+GsaaqARlxy2NKxA7DwohTPJuxzxMcvoVLlcFM6rCFrqQcHZ+LosVEpSwWm30mlS9BPQPu2Zm0QZruO/xuoufxeC94Szs3nlTXLSrNi05Z7IUvCBJDOEiCzzvX1q7kkIqKE6o2gkb2fkJEdKpocLvtDv2Z2JunN2utzLZrVVOyZ33xhtYcO9df+5y3lREHeWETThoxu64eFifVTp35b/eQUb4BTuFb7WsbCLv8wB1f/oVRcqhjL+RCQVrBjzXb27OwWLK7a1y9yQAgqke07zbsRvk6BbgbIQ5zU4WeYCQmztBct3YkdC9fJQJHp8N+Oui+Jeqnypikinhxd5/RKpFGdOH9V9QDpzS29Dv8CzGtmIog0KpdMcqhZ6K6sZGGFb5z6IC7zQvFBaPZKzFFaKsaQxmnTXwhSyJfWBPjWG/GkUbhbu6QN3gzr3l6l43Gl3PcCk21UwyVZ7KnXvLLujtPPm8CtsCW43O29luJL7iq7ke4yvZnz9Uc7L/Qd3k=
|
secure: gzIpZj4UTnvcpyY3d6+9IThG/5S0vcdvu+/E0fgeryWzKvJVOUFYCNsP1TeFgi3fd64vb+p17UoHA1I6QLc8BPAYpUEGY11JZlSHE13ScAcYSd97IhixL5DMnNWQLGCHoE4v1cUwSKyZYOu9vsjCgZf2JwhJHDMzNMH+5JQxMJcA4A+GsaaqARlxy2NKxA7DwohTPJuxzxMcvoVLlcFM6rCFrqQcHZ+LosVEpSwWm30mlS9BPQPu2Zm0QZruO/xuoufxeC94Szs3nlTXLSrNi05Z7IUvCBJDOEiCzzvX1q7kkIqKE6o2gkb2fkJEdKpocLvtDv2Z2JunN2utzLZrVVOyZ33xhtYcO9df+5y3lREHeWETThoxu64eFifVTp35b/eQUb4BTuFb7WsbCLv8wB1f/oVRcqhjL+RCQVrBjzXb27OwWLK7a1y9yQAgqke07zbsRvk6BbgbIQ5zU4WeYCQmztBct3YkdC9fJQJHp8N+Oui+Jeqnypikinhxd5/RKpFGdOH9V9QDpzS29Dv8CzGtmIog0KpdMcqhZ6K6sZGGFb5z6IC7zQvFBaPZKzFFaKsaQxmnTXwhSyJfWBPjWG/GkUbhbu6QN3gzr3l6l43Gl3PcCk21UwyVZ7KnXvLLujtPPm8CtsCW43O29luJL7iq7ke4yvZnz9Uc7L/Qd3k=
|
||||||
|
|
|
@ -22,8 +22,6 @@ cd $BuildDir
|
||||||
rm -f caddy*
|
rm -f caddy*
|
||||||
gox $Package
|
gox $Package
|
||||||
|
|
||||||
timestamp=$(date +%s)
|
|
||||||
|
|
||||||
# Zip them up with release notes and stuff
|
# Zip them up with release notes and stuff
|
||||||
mkdir -p $ReleaseDir
|
mkdir -p $ReleaseDir
|
||||||
cd $ReleaseDir
|
cd $ReleaseDir
|
||||||
|
@ -31,7 +29,7 @@ rm -f caddy*
|
||||||
for f in $BuildDir/*
|
for f in $BuildDir/*
|
||||||
do
|
do
|
||||||
# Name .zip file same as binary, but strip .exe from end
|
# Name .zip file same as binary, but strip .exe from end
|
||||||
zipname=${timestamp}_$(basename ${f%".exe"})
|
zipname=$(basename ${f%".exe"})
|
||||||
if [[ $f == *"linux"* ]] || [[ $f == *"bsd"* ]]; then
|
if [[ $f == *"linux"* ]] || [[ $f == *"bsd"* ]]; then
|
||||||
zipname=${zipname}.tar.gz
|
zipname=${zipname}.tar.gz
|
||||||
else
|
else
|
||||||
|
@ -57,4 +55,4 @@ do
|
||||||
mv $bin $f
|
mv $bin $f
|
||||||
done
|
done
|
||||||
|
|
||||||
caddyext remove hugo
|
sed -i 's/{TIME}/'$(date +%s)'/g' dist/bintray.json
|
|
@ -9,7 +9,7 @@
|
||||||
},
|
},
|
||||||
"files": [{
|
"files": [{
|
||||||
"includePattern": "/home/travis/gopath/src/github.com/hacdias/caddy-hugo/Godeps/_workspace:/home/travis/gopath/src/github.com/hacdias/caddy-hugo/dist/release/(.*)",
|
"includePattern": "/home/travis/gopath/src/github.com/hacdias/caddy-hugo/Godeps/_workspace:/home/travis/gopath/src/github.com/hacdias/caddy-hugo/dist/release/(.*)",
|
||||||
"uploadPattern": "caddy-hugo/$1"
|
"uploadPattern": "caddy-hugo/{TIME}/$1"
|
||||||
}],
|
}],
|
||||||
"publish": true
|
"publish": true
|
||||||
}
|
}
|
Loading…
Reference in New Issue