Skip to content
Permalink
Browse files

Azure pipelines (#1605)

  • Loading branch information...
markbates committed Feb 23, 2019
1 parent e727f3f commit 02f697fd75467bdd4d7d77c6da55d0706830b39b
Showing with 85 additions and 90 deletions.
  1. +0 −79 .travis.yml
  2. +0 −11 Dockerfile
  3. +66 −0 azure-pipelines.yml
  4. +19 −0 azure-tests.yml

This file was deleted.

Oops, something went wrong.
@@ -1,17 +1,6 @@
FROM gobuffalo/buffalo:latest

ARG CODECOV_TOKEN
ARG CI
ARG TRAVIS
ARG TRAVIS_BRANCH
ARG TRAVIS_COMMIT
ARG TRAVIS_JOB_ID
ARG TRAVIS_JOB_NUMBER
ARG TRAVIS_OS_NAME
ARG TRAVIS_PULL_REQUEST
ARG TRAVIS_PULL_REQUEST_SHA
ARG TRAVIS_REPO_SLUG
ARG TRAVIS_TAG

ENV BP=$GOPATH/src/github.com/gobuffalo/buffalo
RUN rm -rf $BP
@@ -0,0 +1,66 @@
variables:
GOBIN: "$(GOPATH)/bin" # Go binaries path
GOPATH: "$(system.defaultWorkingDirectory)/gopath" # Go workspace path
modulePath: "$(GOPATH)/src/github.com/$(build.repository.name)" # Path to the module"s code

jobs:
- job: IntegrationTests
pool:
vmImage: "ubuntu-16.04"
steps:
- script: docker build .
displayName: "Integration Tests"

- job: Windows
pool:
vmImage: "vs2017-win2016"
strategy:
matrix:
go 1.9:
go_version: "1.9"
go 1.10:
go_version: "1.10"
go 1.11 (on):
go_version: "1.11"
GO111MODULE: "on"
go 1.11 (off):
go_version: "1.11"
GO111MODULE: "off"
steps:
- template: azure-tests.yml

- job: macOS
pool:
vmImage: "macOS-10.13"
strategy:
matrix:
go 1.9:
go_version: "1.9"
go 1.10:
go_version: "1.10"
go 1.11 (on):
go_version: "1.11"
GO111MODULE: "on"
go 1.11 (off):
go_version: "1.11"
GO111MODULE: "off"
steps:
- template: azure-tests.yml

- job: Linux
pool:
vmImage: "ubuntu-16.04"
strategy:
matrix:
go 1.9:
go_version: "1.9"
go 1.10:
go_version: "1.10"
go 1.11 (on):
go_version: "1.11"
GO111MODULE: "on"
go 1.11 (off):
go_version: "1.11"
GO111MODULE: "off"
steps:
- template: azure-tests.yml
@@ -0,0 +1,19 @@
steps:
- task: GoTool@0
inputs:
version: $(go_version)
- task: Bash@3
inputs:
targetType: inline
script: |
mkdir -p "$(GOBIN)"
mkdir -p "$(GOPATH)/pkg"
mkdir -p "$(modulePath)"
shopt -s extglob
mv !(gopath) "$(modulePath)"
displayName: "Setup Go Workspace"
- script: |
go get -tags "sqlite integration_test" -t -v ./...
go test -tags "sqlite integration_test" -race ./...
workingDirectory: "$(modulePath)"
displayName: "Tests"

0 comments on commit 02f697f

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