Add travis

Former-commit-id: 09fc8c6c50b11bc608750cd6f0557c357dab60fd
Former-commit-id: 2d9292b8b41f5c4cf5d4b797acd122b85f6f9e34 [formerly 8888763d73b0192d862eea77c6a98f635a928bcb] [formerly 4012b458d4e377a0d520646b3e335c723fb2bb4d [formerly ba8fa500646528eac9824da960090abff6a87825 [formerly ba8fa500646528eac9824da960090abff6a87825 [formerly ba8fa500646528eac9824da960090abff6a87825 [formerly 61da55d5ef3d92265cce865b080ec412e7efebda]]]]]
Former-commit-id: 10b41c3494e37100124a9eeb91d3d7bb478c9e1a [formerly c814d5718f1d822b3ca55841da75fa684fe85ab6]
Former-commit-id: 706617a4793c8a255087a5bd9c0dcc6e5e423c67
Former-commit-id: 83ca480f175e69aa0f0852076d5f0dc5fba4e0f5
Former-commit-id: 9887c0f06b06cbe09a9955f5a4034b19b80651dd
Former-commit-id: 40e64761f32190edf62646e45e588fd4e2d9b07a [formerly 333943ca003a3b630c8923f33a1618f32e64ee23]
Former-commit-id: 6aba987c30076b5806a7ab7d85de0d81f14227b8
This commit is contained in:
Erèbe 2017-12-05 10:14:23 +01:00
parent b16fad1031
commit 13305ffe5d
4 changed files with 45 additions and 20 deletions

View file

@ -1 +1,2 @@
.stack-work
.travis.yml

24
.travis.yml Normal file
View file

@ -0,0 +1,24 @@
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
before_install:
- docker build -t erebe/wstunnel .
script:
- docker run --rm -ti -v $(pwd):/mnt erebe/wstunnel /bin/sh -c 'cp wstunnel /mnt'
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: AbS+BiwuYyXvcdpcHfdqQbug3I/PrFM4hl90RA1nnjLWWFnI03c0Em8EyTlFHp4FvJSDHmBXu2u6TD5QUVgo4YqKaOf6VqJCdbxvH0zubYBGhURtvCT9OGrl9emoUvpzsxLvFXminuVGGcfcn6Vk80wAszQhrDUNmzSDq8RwKLyjMx2xs/hmilz3+4oZ9HbFodho9v14VrboERgImxHBslR1/RrTCNKQAtOZzPhpxlWPEuQuD2Mx/8l+4TV8kBf61vKUncMrV/h6v8pR7aY78JuUXJszwKJwoeBwiBc22UaWzAP3ZSQEIKEJVpEH3q/JtYJcxutf8JnOdDCng/xN7n18GSN7YDrQe/AWVm0iS+keNx76zZrBKTW6sxUQRHhQq16wS3v5ve5yScL60TXKGcRGlmGbFwjGukFqj4MM/iK7JzfAqSyEwuh2S4IaBnaJj0AJW+608QMsO06AnCHIfi0lOtOLltEzBCAxj5ER+pTNrIq1jFE38hen0sTQknB16NmSKsleisbrZm2Vs32csGHt50TdG6keLmy94cTbXcvYsU2/LF6PApyYfL1rNFmSeUzVaqHamwemUOJXtUewveOcwkKz/bUA65movEeA3kJSv46r+sQ/3HQQLlLGw6wK2Yzc9sNf90OPBqBJ6ZJoAtBN2U1zIHoI4XW+RsKdURE=
file: wstunnel
on:
tags: true

View file

@ -15,7 +15,8 @@ RUN rm -rf ~/.stack && \
COPY . /mnt
RUN stack install --split-objs --ghc-options="-fPIC -fllvm"
RUN echo ' ld-options: -static -Wl,--unresolved-symbols=ignore-all' >> wstunnel.cabal ; \
stack install --split-objs --ghc-options="-fPIC -fllvm"
RUN upx --ultra-brute /root/.local/bin/wstunnel
@ -27,5 +28,5 @@ WORKDIR /root
COPY --from=builder /root/.local/bin/wstunnel .
RUN chmod +x ./wstunnel
ENTRYPOINT ["./wstunnel"]
CMD ["./wstunnel"]

View file

@ -35,24 +35,6 @@ library
default-language: Haskell2010
executable wstunnel
hs-source-dirs: app
main-is: Main.hs
default-extensions: NoImplicitPrelude, ScopedTypeVariables, BangPatterns, RecordWildCards
ghc-options: -threaded
-O3
-rtsopts "-with-rtsopts=-N"
-- ld-options: -static
build-depends: base
, bytestring
, classy-prelude
, cmdargs
, hslogger
, text >= 1.2.2.1
, wstunnel
default-language: Haskell2010
test-suite wstunnel-test
type: exitcode-stdio-1.0
hs-source-dirs: test
@ -66,3 +48,20 @@ test-suite wstunnel-test
source-repository head
type: git
location: https://github.com/githubuser/wstunnel
executable wstunnel
hs-source-dirs: app
main-is: Main.hs
default-extensions: NoImplicitPrelude, ScopedTypeVariables, BangPatterns, RecordWildCards
ghc-options: -threaded
-O3
-rtsopts "-with-rtsopts=-N"
build-depends: base
, bytestring
, classy-prelude
, cmdargs
, hslogger
, text >= 1.2.2.1
, wstunnel
default-language: Haskell2010