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:
51
.travis.yml
51
.travis.yml
@@ -1,25 +1,40 @@
|
||||
language: go
|
||||
sudo: false
|
||||
|
||||
env:
|
||||
global:
|
||||
- GO111MODULE=on
|
||||
|
||||
# deploy will use first go version listed below.
|
||||
language: go
|
||||
go:
|
||||
- "1.11.x"
|
||||
- "master"
|
||||
|
||||
install:
|
||||
- "go get golang.org/x/lint/golint"
|
||||
- "make deps"
|
||||
|
||||
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
|
||||
|
||||
env:
|
||||
global:
|
||||
- GO111MODULE=on
|
||||
- DEPLOY_WITH_MAJOR="1.11"
|
||||
|
||||
before_script:
|
||||
- go get golang.org/x/lint/golint
|
||||
- make deps
|
||||
|
||||
go:
|
||||
- "1.11.x"
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: etc/travis-deploy.sh
|
||||
on:
|
||||
tags: true
|
||||
stages:
|
||||
- test
|
||||
- elm
|
||||
- name: deploy
|
||||
if: tag IS present
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user