Skip to content
Permalink
Browse files

Move to go modules

  • Loading branch information...
paranoidaditya committed Jun 6, 2019
1 parent 07d7b63 commit 9134ef68d2ad76639fc3baed2553be0b60d7e7e6
Showing with 145 additions and 117,380 deletions.
  1. +18 −9 .travis.yml
  2. +6 −0 Gemfile
  3. +47 −0 Gemfile.lock
  4. +0 −40 Godeps/Godeps.json
  5. +0 −5 Godeps/Readme
  6. +17 −14 Makefile
  7. +12 −3 dev.yml
  8. +14 −0 go.mod
  9. +31 −0 go.sum
  10. +0 −27 vendor/github.com/gorilla/context/LICENSE
  11. +0 −6 vendor/github.com/gorilla/context/README.md
  12. +0 −112 vendor/github.com/gorilla/context/context.go
  13. +0 −82 vendor/github.com/gorilla/context/doc.go
  14. +0 −7 vendor/github.com/gorilla/mux/.travis.yml
  15. +0 −27 vendor/github.com/gorilla/mux/LICENSE
  16. +0 −7 vendor/github.com/gorilla/mux/README.md
  17. +0 −199 vendor/github.com/gorilla/mux/doc.go
  18. +0 −347 vendor/github.com/gorilla/mux/mux.go
  19. +0 −247 vendor/github.com/gorilla/mux/regexp.go
  20. +0 −499 vendor/github.com/gorilla/mux/route.go
  21. +0 −1 vendor/github.com/sirupsen/logrus/.gitignore
  22. +0 −7 vendor/github.com/sirupsen/logrus/.travis.yml
  23. +0 −21 vendor/github.com/sirupsen/logrus/LICENSE
  24. +0 −339 vendor/github.com/sirupsen/logrus/README.md
  25. +0 −242 vendor/github.com/sirupsen/logrus/entry.go
  26. +0 −177 vendor/github.com/sirupsen/logrus/exported.go
  27. +0 −54 vendor/github.com/sirupsen/logrus/formatter.go
  28. +0 −34 vendor/github.com/sirupsen/logrus/hooks.go
  29. +0 −19 vendor/github.com/sirupsen/logrus/json_formatter.go
  30. +0 −161 vendor/github.com/sirupsen/logrus/logger.go
  31. +0 −72 vendor/github.com/sirupsen/logrus/logrus.go
  32. +0 −12 vendor/github.com/sirupsen/logrus/terminal_darwin.go
  33. +0 −20 vendor/github.com/sirupsen/logrus/terminal_freebsd.go
  34. +0 −12 vendor/github.com/sirupsen/logrus/terminal_linux.go
  35. +0 −21 vendor/github.com/sirupsen/logrus/terminal_notwindows.go
  36. +0 −27 vendor/github.com/sirupsen/logrus/terminal_windows.go
  37. +0 −86 vendor/github.com/sirupsen/logrus/text_formatter.go
  38. +0 −2 vendor/github.com/urfave/cli/.gitignore
  39. +0 −40 vendor/github.com/urfave/cli/.travis.yml
  40. +0 −329 vendor/github.com/urfave/cli/CHANGELOG.md
  41. +0 −21 vendor/github.com/urfave/cli/LICENSE
  42. +0 −1,309 vendor/github.com/urfave/cli/README.md
  43. +0 −499 vendor/github.com/urfave/cli/app.go
  44. +0 −25 vendor/github.com/urfave/cli/appveyor.yml
  45. +0 −44 vendor/github.com/urfave/cli/category.go
  46. +0 −19 vendor/github.com/urfave/cli/cli.go
  47. +0 −279 vendor/github.com/urfave/cli/command.go
  48. +0 −549 vendor/github.com/urfave/cli/context.go
  49. +0 −92 vendor/github.com/urfave/cli/errors.go
  50. +0 −882 vendor/github.com/urfave/cli/flag.go
  51. +0 −28 vendor/github.com/urfave/cli/funcs.go
  52. +0 −267 vendor/github.com/urfave/cli/help.go
  53. +0 −105 vendor/github.com/urfave/cli/runtests
  54. +0 −3 vendor/golang.org/x/crypto/AUTHORS
  55. +0 −3 vendor/golang.org/x/crypto/CONTRIBUTORS
  56. +0 −27 vendor/golang.org/x/crypto/LICENSE
  57. +0 −22 vendor/golang.org/x/crypto/PATENTS
  58. +0 −951 vendor/golang.org/x/crypto/ssh/terminal/terminal.go
  59. +0 −119 vendor/golang.org/x/crypto/ssh/terminal/util.go
  60. +0 −12 vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go
  61. +0 −11 vendor/golang.org/x/crypto/ssh/terminal/util_linux.go
  62. +0 −58 vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go
  63. +0 −128 vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go
  64. +0 −155 vendor/golang.org/x/crypto/ssh/terminal/util_windows.go
  65. +0 −3 vendor/golang.org/x/sys/AUTHORS
  66. +0 −3 vendor/golang.org/x/sys/CONTRIBUTORS
  67. +0 −27 vendor/golang.org/x/sys/LICENSE
  68. +0 −22 vendor/golang.org/x/sys/PATENTS
  69. +0 −1 vendor/golang.org/x/sys/unix/.gitignore
  70. +0 −10 vendor/golang.org/x/sys/unix/asm.s
  71. +0 −29 vendor/golang.org/x/sys/unix/asm_darwin_386.s
  72. +0 −29 vendor/golang.org/x/sys/unix/asm_darwin_amd64.s
  73. +0 −30 vendor/golang.org/x/sys/unix/asm_darwin_arm.s
  74. +0 −30 vendor/golang.org/x/sys/unix/asm_darwin_arm64.s
  75. +0 −29 vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
  76. +0 −29 vendor/golang.org/x/sys/unix/asm_freebsd_386.s
  77. +0 −29 vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s
  78. +0 −29 vendor/golang.org/x/sys/unix/asm_freebsd_arm.s
  79. +0 −35 vendor/golang.org/x/sys/unix/asm_linux_386.s
  80. +0 −29 vendor/golang.org/x/sys/unix/asm_linux_amd64.s
  81. +0 −29 vendor/golang.org/x/sys/unix/asm_linux_arm.s
  82. +0 −24 vendor/golang.org/x/sys/unix/asm_linux_arm64.s
  83. +0 −28 vendor/golang.org/x/sys/unix/asm_linux_mips64x.s
  84. +0 −28 vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
  85. +0 −28 vendor/golang.org/x/sys/unix/asm_linux_s390x.s
  86. +0 −29 vendor/golang.org/x/sys/unix/asm_netbsd_386.s
  87. +0 −29 vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s
  88. +0 −29 vendor/golang.org/x/sys/unix/asm_netbsd_arm.s
  89. +0 −29 vendor/golang.org/x/sys/unix/asm_openbsd_386.s
  90. +0 −29 vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s
  91. +0 −17 vendor/golang.org/x/sys/unix/asm_solaris_amd64.s
  92. +0 −35 vendor/golang.org/x/sys/unix/bluetooth_linux.go
  93. +0 −13 vendor/golang.org/x/sys/unix/constants.go
  94. +0 −27 vendor/golang.org/x/sys/unix/env_unix.go
  95. +0 −14 vendor/golang.org/x/sys/unix/env_unset.go
  96. +0 −24 vendor/golang.org/x/sys/unix/flock.go
  97. +0 −13 vendor/golang.org/x/sys/unix/flock_linux_32bit.go
  98. +0 −46 vendor/golang.org/x/sys/unix/gccgo.go
  99. +0 −41 vendor/golang.org/x/sys/unix/gccgo_c.c
  100. +0 −20 vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go
  101. +0 −285 vendor/golang.org/x/sys/unix/mkall.sh
  102. +0 −476 vendor/golang.org/x/sys/unix/mkerrors.sh
  103. +0 −62 vendor/golang.org/x/sys/unix/mkpost.go
  104. +0 −323 vendor/golang.org/x/sys/unix/mksyscall.pl
  105. +0 −294 vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
  106. +0 −264 vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
  107. +0 −39 vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
  108. +0 −50 vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
  109. +0 −63 vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
  110. +0 −58 vendor/golang.org/x/sys/unix/mksysnum_linux.pl
  111. +0 −58 vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
  112. +0 −50 vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
  113. +0 −30 vendor/golang.org/x/sys/unix/race.go
  114. +0 −25 vendor/golang.org/x/sys/unix/race0.go
  115. +0 −36 vendor/golang.org/x/sys/unix/sockcmsg_linux.go
  116. +0 −103 vendor/golang.org/x/sys/unix/sockcmsg_unix.go
  117. +0 −26 vendor/golang.org/x/sys/unix/str.go
  118. +0 −76 vendor/golang.org/x/sys/unix/syscall.go
  119. +0 −628 vendor/golang.org/x/sys/unix/syscall_bsd.go
  120. +0 −511 vendor/golang.org/x/sys/unix/syscall_darwin.go
  121. +0 −77 vendor/golang.org/x/sys/unix/syscall_darwin_386.go
  122. +0 −79 vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
  123. +0 −71 vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
  124. +0 −77 vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
  125. +0 −412 vendor/golang.org/x/sys/unix/syscall_dragonfly.go
  126. +0 −61 vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go
  127. +0 −683 vendor/golang.org/x/sys/unix/syscall_freebsd.go
  128. +0 −61 vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
  129. +0 −61 vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
  130. +0 −61 vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
  131. +0 −1,115 vendor/golang.org/x/sys/unix/syscall_linux.go
  132. +0 −399 vendor/golang.org/x/sys/unix/syscall_linux_386.go
  133. +0 −157 vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
  134. +0 −263 vendor/golang.org/x/sys/unix/syscall_linux_arm.go
  135. +0 −192 vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
  136. +0 −215 vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
  137. +0 −135 vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
  138. +0 −329 vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
  139. +0 −492 vendor/golang.org/x/sys/unix/syscall_netbsd.go
  140. +0 −42 vendor/golang.org/x/sys/unix/syscall_netbsd_386.go
  141. +0 −42 vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go
  142. +0 −42 vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go
  143. +0 −11 vendor/golang.org/x/sys/unix/syscall_no_getwd.go
  144. +0 −304 vendor/golang.org/x/sys/unix/syscall_openbsd.go
  145. +0 −42 vendor/golang.org/x/sys/unix/syscall_openbsd_386.go
  146. +0 −42 vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
  147. +0 −713 vendor/golang.org/x/sys/unix/syscall_solaris.go
  148. +0 −35 vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go
  149. +0 −297 vendor/golang.org/x/sys/unix/syscall_unix.go
  150. +0 −250 vendor/golang.org/x/sys/unix/types_darwin.go
  151. +0 −242 vendor/golang.org/x/sys/unix/types_dragonfly.go
  152. +0 −353 vendor/golang.org/x/sys/unix/types_freebsd.go
  153. +0 −450 vendor/golang.org/x/sys/unix/types_linux.go
  154. +0 −232 vendor/golang.org/x/sys/unix/types_netbsd.go
  155. +0 −244 vendor/golang.org/x/sys/unix/types_openbsd.go
  156. +0 −260 vendor/golang.org/x/sys/unix/types_solaris.go
  157. +0 −1,576 vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
  158. +0 −1,576 vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
  159. +0 −1,293 vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
  160. +0 −1,576 vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
  161. +0 −1,530 vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
  162. +0 −1,743 vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
  163. +0 −1,748 vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
  164. +0 −1,729 vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
  165. +0 −1,819 vendor/golang.org/x/sys/unix/zerrors_linux_386.go
  166. +0 −1,820 vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
  167. +0 −1,743 vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
  168. +0 −1,897 vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
  169. +0 −1,917 vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
  170. +0 −1,917 vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
  171. +0 −1,970 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
  172. +0 −1,969 vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
  173. +0 −2,027 vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
  174. +0 −1,712 vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
  175. +0 −1,702 vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
  176. +0 −1,688 vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
  177. +0 −1,584 vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
  178. +0 −1,583 vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
  179. +0 −1,436 vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
  180. +0 −1,427 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
  181. +0 −1,443 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
  182. +0 −1,427 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
  183. +0 −1,427 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
  184. +0 −1,413 vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
  185. +0 −1,665 vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
  186. +0 −1,665 vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
  187. +0 −1,665 vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go
  188. +0 −1,660 vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
  189. +0 −1,854 vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
  190. +0 −1,761 vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
  191. +0 −1,734 vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
  192. +0 −1,803 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
  193. +0 −1,803 vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
  194. +0 −1,865 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
  195. +0 −1,865 vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
  196. +0 −1,645 vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
  197. +0 −1,327 vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
  198. +0 −1,327 vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
  199. +0 −1,327 vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
  200. +0 −1,387 vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
  201. +0 −1,387 vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
  202. +0 −1,559 vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
  203. +0 −270 vendor/golang.org/x/sys/unix/zsysctl_openbsd.go
  204. +0 −398 vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go
  205. +0 −398 vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go
  206. +0 −358 vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go
  207. +0 −398 vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go
  208. +0 −304 vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
  209. +0 −351 vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
  210. +0 −351 vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
  211. +0 −351 vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
  212. +0 −355 vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
  213. +0 −321 vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
  214. +0 −356 vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
  215. +0 −272 vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
  216. +0 −327 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
  217. +0 −327 vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
  218. +0 −360 vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
  219. +0 −353 vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
  220. +0 −328 vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
  221. +0 −273 vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go
  222. +0 −273 vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go
  223. +0 −273 vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go
  224. +0 −207 vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
  225. +0 −207 vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
  226. +0 −13 vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go
  227. +0 −447 vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
  228. +0 −462 vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
  229. +0 −449 vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
  230. +0 −457 vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
  231. +0 −443 vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
  232. +0 −502 vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
  233. +0 −505 vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
  234. +0 −497 vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
  235. +0 −627 vendor/golang.org/x/sys/unix/ztypes_linux_386.go
  236. +0 −645 vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
  237. +0 −607 vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
  238. +0 −624 vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
  239. +0 −627 vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
  240. +0 −627 vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
  241. +0 −634 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
  242. +0 −634 vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
  243. +0 −649 vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
  244. +0 −396 vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
  245. +0 −403 vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
  246. +0 −401 vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
  247. +0 −441 vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
  248. +0 −448 vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
  249. +0 −422 vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
  250. +0 −29 vendor/gopkg.in/tomb.v1/LICENSE
  251. +0 −4 vendor/gopkg.in/tomb.v1/README.md
  252. +0 −176 vendor/gopkg.in/tomb.v1/tomb.go
@@ -1,19 +1,28 @@
sudo: false

language: go
sudo: false

go:
- 1.9.x
- 1.x
cache:
directories:
- $GOPATH/pkg/mod

git:
depth: 1

install: true
env:
- GO111MODULE=on

matrix:
fast_finish: true
include:
- go: 1.11.x
- go: 1.12.x
- go: tip
allow_failures:
- go: tip

before_script:
- go get github.com/tools/godep
- godep go build
- go mod download

script:
- godep go test ./...
- go test ./...
- go test -race ./...
@@ -0,0 +1,6 @@
source "https://rubygems.org"

group :deploy, :test do
gem 'fpm'
end

@@ -0,0 +1,47 @@
GEM
remote: https://rubygems.org/
specs:
arr-pm (0.0.10)
cabin (> 0)
backports (3.15.0)
cabin (0.9.0)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
clamp (1.0.1)
dotenv (2.7.2)
ffi (1.11.1)
fpm (1.11.0)
arr-pm (~> 0.0.10)
backports (>= 2.6.2)
cabin (>= 0.6.0)
childprocess (= 0.9.0)
clamp (~> 1.0.0)
ffi
json (>= 1.7.7, < 2.0)
pleaserun (~> 0.0.29)
ruby-xz (~> 0.2.3)
stud
insist (1.0.0)
io-like (0.3.0)
json (1.8.6)
mustache (0.99.8)
pleaserun (0.0.30)
cabin (> 0)
clamp
dotenv
insist
mustache (= 0.99.8)
stud
ruby-xz (0.2.3)
ffi (~> 1.9)
io-like (~> 0.3)
stud (0.0.23)

PLATFORMS
ruby

DEPENDENCIES
fpm

BUNDLED WITH
1.17.3

This file was deleted.

This file was deleted.

@@ -2,17 +2,16 @@ SERVER_NAME=toxiproxy-server
CLI_NAME=toxiproxy-cli
VERSION=$(shell cat VERSION)
DEB=pkg/toxiproxy_$(VERSION)_amd64.deb
GODEP_PATH=$(shell pwd)/vendor
ORIGINAL_PATH=$(shell echo $(GOPATH))
COMBINED_GOPATH=$(GODEP_PATH):$(ORIGINAL_PATH)

.PHONY: packages deb test linux darwin windows
export GO111MODULE=on

.PHONY: packages deb test linux darwin windows setup

build:
GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=git-$(shell git rev-parse --short HEAD)" -o $(SERVER_NAME) ./cmd
GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=git-$(shell git rev-parse --short HEAD)" -o $(CLI_NAME) ./cli
go build -ldflags="-X github.com/Shopify/toxiproxy.Version=git-$(shell git rev-parse --short HEAD)" -o $(SERVER_NAME) ./cmd
go build -ldflags="-X github.com/Shopify/toxiproxy.Version=git-$(shell git rev-parse --short HEAD)" -o $(CLI_NAME) ./cli

all: deb linux darwin windows
all: setup deb linux darwin windows
deb: $(DEB)

darwin: tmp/build/$(SERVER_NAME)-darwin-amd64 tmp/build/$(CLI_NAME)-darwin-amd64
@@ -29,25 +28,25 @@ clean:

test:
echo "Testing with" `go version`
GOMAXPROCS=4 GOPATH=$(COMBINED_GOPATH) go test -v -race ./...
GOMAXPROCS=4 go test -v -race ./...

tmp/build/$(SERVER_NAME)-linux-amd64:
GOOS=linux GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd
GOOS=linux GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd

tmp/build/$(SERVER_NAME)-darwin-amd64:
GOOS=darwin GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd
GOOS=darwin GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd

tmp/build/$(SERVER_NAME)-windows-amd64.exe:
GOOS=windows GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd
GOOS=windows GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cmd

tmp/build/$(CLI_NAME)-linux-amd64:
GOOS=linux GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli
GOOS=linux GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli

tmp/build/$(CLI_NAME)-darwin-amd64:
GOOS=darwin GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli
GOOS=darwin GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli

tmp/build/$(CLI_NAME)-windows-amd64.exe:
GOOS=windows GOARCH=amd64 GOPATH=$(COMBINED_GOPATH) go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli
GOOS=windows GOARCH=amd64 go build -ldflags="-X github.com/Shopify/toxiproxy.Version=$(VERSION)" -o $(@) ./cli

$(DEB): tmp/build/$(SERVER_NAME)-linux-amd64 tmp/build/$(CLI_NAME)-linux-amd64
fpm -t deb \
@@ -74,3 +73,7 @@ docker-release: linux
docker tag shopify/toxiproxy:$(VERSION) shopify/toxiproxy:latest
docker push shopify/toxiproxy:$(VERSION)
docker push shopify/toxiproxy:latest

setup:
go mod download
go mod tidy
15 dev.yml
@@ -1,12 +1,21 @@
name: toxiproxy

type: go

up:
- go: 1.7.3
- homebrew:
- openssl
- gnu-tar
- go:
version: 1.12
modules: true
- ruby: 2.6.3
- bundler

commands:
build:
run: godep go build
run: go build ./...
desc: 'build the project'
test:
run: godep go test ./...
run: go test ./...
desc: 'run unit tests'
14 go.mod
@@ -0,0 +1,14 @@
module github.com/Shopify/toxiproxy

go 1.12

require (
github.com/gorilla/mux v1.7.2
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.3.0 // indirect
github.com/urfave/cli v1.20.0
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
)
31 go.sum
@@ -0,0 +1,31 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gorilla/mux v1.7.2 h1:zoNxOV7WjqXptQOVngLmcSQgXmgk4NMz1HibBchjl/I=
github.com/gorilla/mux v1.7.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s=
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw=
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 h1:58fnuSXlxZmFdJyvtTFVmVhcMLU6v5fEb/ok4wyqtNU=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c h1:+EXw7AwNOKzPFXMZ1yNjO40aWCh3PIquJB2fYlv9wcs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=

This file was deleted.

This file was deleted.

0 comments on commit 9134ef6

Please sign in to comment.
You can’t perform that action at this time.