diff --git a/.travis.yml b/.travis.yml index 06b6d53f..81ba5fd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,9 @@ services: - docker script: + - go generate ./web ./... - ./travis/coverage.sh - - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build + - gox -os "linux darwin windows" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash @@ -20,16 +21,25 @@ before_install: - export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/${TRAVIS_REPO_SLUG} - cd $HOME/gopath/src/github.com/${TRAVIS_REPO_SLUG} - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.8 bash)" + +install: - go get -u github.com/jteeuwen/go-bindata/... - go get -u github.com/elazarl/go-bindata-assetfs/... - go get -u github.com/aandryashin/matchers + - go get -u github.com/mitchellh/gox # cross compile - npm install cross-env - - go generate ./web ./... after_success: - bash <(curl -s https://codecov.io/bash) deploy: + - provider: releases + api-key: $GITHUB_TOKEN + file_glob: true + file: dist/* + skip_cleanup: true + on: + tags: true - provider: script script: travis/docker-push.sh latest skip_cleanup: true diff --git a/Dockerfile b/Dockerfile index 6368717b..7a547219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM scratch MAINTAINER Kirill Merkushev -COPY selenoid-ui / +COPY dist/selenoid-ui_linux_amd64 /selenoid-ui EXPOSE 8080 ENTRYPOINT ["/selenoid-ui"]