1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Merge branch 'feature/travis' into develop

This commit is contained in:
James Hillyerd
2018-12-23 12:45:55 -08:00
2 changed files with 31 additions and 26 deletions

View File

@@ -1,25 +1,40 @@
language: go
sudo: false sudo: false
addons:
apt:
packages:
- rpm
env: env:
global: global:
- GO111MODULE=on - GO111MODULE=on
- DEPLOY_WITH_MAJOR="1.11"
before_script:
- go get golang.org/x/lint/golint
- make deps
# deploy will use first go version listed below.
language: go
go: go:
- "1.11.x" - "1.11.x"
- "master"
deploy: install:
provider: script - "go get golang.org/x/lint/golint"
script: etc/travis-deploy.sh - "make deps"
on:
tags: true jobs:
include:
- stage: elm
install:
- "cd ui"
- "npm install"
script:
- "elm-format --validate ."
- "npm run build"
language: elm
elm: "0.19.0"
- stage: deploy
install: "true"
script: "curl -sL https://git.io/goreleaser | bash"
addons:
apt:
packages:
- rpm
stages:
- test
- elm
- name: deploy
if: tag IS present

View File

@@ -1,10 +0,0 @@
#!/bin/bash
# travis-deploy.sh
# description: Trigger goreleaser deployment in correct build scenarios
set -eo pipefail
set -x
if [[ "$TRAVIS_GO_VERSION" == "$DEPLOY_WITH_MAJOR."* ]]; then
curl -sL https://git.io/goreleaser | bash
fi