Skip to content

Commit 88388c2

Browse files
committed
- [-] simplify travis test, now that bintray is defunct
1 parent 50760c2 commit 88388c2

1 file changed

Lines changed: 0 additions & 67 deletions

File tree

.travis.yml

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,77 +2,10 @@
22

33
language: go
44

5-
env:
6-
global:
7-
# Package setup (Ref: http://pkg-go.alioth.debian.org/packaging.html)
8-
- VERSION="${TRAVIS_TAG:=0.0~git$(date +%Y%m%d)-1}"
9-
- PKG_NAME="wireframe"
10-
- PKG_URL="https://github.com/go-easygen/wireframe"
11-
- PKG_CAT=utils
12-
- PKG_ARCH=amd64
13-
- PKG_DESC="wire-frame construction to get the project quickly into shape"
14-
- PKG_VEND="go-easygen"
15-
- PKG_MAINT='Tong Sun <suntong@cpan.org>'
16-
- PKG_LICNS="MIT"
17-
# Build time setup
18-
- TZ=America/Toronto
19-
- DATE_BUILD=`date -I`
20-
215
script:
226

23-
- date
24-
- echo $DATE_BUILD $VERSION
25-
- echo
26-
277
- go get -t -v ./...
288
- go build -v -ldflags="-X main.date=$DATE_BUILD"
299
- wireframe
3010
- go test -v ./...
3111

32-
- go get github.com/mitchellh/gox
33-
- gox -ldflags="-X main.date=$DATE_BUILD" -osarch="linux/386 linux/amd64 darwin/amd64 windows/amd64" -output="out/{{.Dir}}-{{.OS}}-{{.Arch}}"
34-
# linux/386 linux/amd64 linux/arm darwin/amd64 darwin/386 windows/amd64 windows/386
35-
# e.g.: out/wireframe-linux-amd64
36-
37-
# Create Debian Package
38-
- mkdir -p build
39-
- cp -v out/${PKG_NAME}-linux-amd64 build/${PKG_NAME}
40-
- gem install fpm --no-document
41-
- mkdir -p pkg
42-
- >-
43-
fpm --verbose -s dir -t deb
44-
--name ${PKG_NAME}
45-
--package pkg/${PKG_NAME}.deb
46-
--force
47-
--deb-compression bzip2
48-
--url "${PKG_URL}"
49-
--category ${PKG_CAT}
50-
--description "${PKG_DESC}"
51-
--maintainer "${PKG_MAINT}"
52-
--vendor "${PKG_VEND}"
53-
--license "${PKG_LICNS}"
54-
--version ${VERSION}
55-
--architecture ${PKG_ARCH}
56-
--depends apt
57-
--deb-compression gz
58-
./build/=/usr/bin/
59-
# --deb-compression gz: https://unix.stackexchange.com/questions/441032/
60-
- ar t pkg/${PKG_NAME}.deb
61-
62-
- sed -i -e "s/\$VERSION/$VERSION/" bintray-bin.json bintray-pkg.json
63-
- sed -i -e "s/\$DATE/$DATE_BUILD/" bintray-bin.json bintray-pkg.json
64-
65-
deploy:
66-
- provider: bintray
67-
user: suntong
68-
key: ${BINTRAY_API_KEY}
69-
file: bintray-bin.json
70-
skip_cleanup: true
71-
72-
- provider: bintray
73-
user: suntong
74-
key: $BINTRAY_API_KEY
75-
file: bintray-pkg.json
76-
skip_cleanup: true
77-
on:
78-
# tags: true

0 commit comments

Comments
 (0)