Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Homebrew fixes release 5.39 #389

Merged
merged 3 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ executors:
default:
working_directory: ~/go/src/github.com/mattermost/mmctl
docker:
- image: circleci/golang:1.15.5
- image: circleci/golang:1.17.0

aliases:
- &restore_cache
Expand All @@ -25,13 +25,13 @@ commands:
parameters:
version:
type: string
default: 1.31.0
default: 1.42.0
gobin:
type: string
default: /go/bin
prefix:
type: string
default: v1
default: v2
description: Prefix for cache key to store the binary.
steps:
- restore_cache:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

setup:
docker:
- image: mattermost/mattermost-build-webapp:oct-2-2018
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
working_directory: ~/go/src/github.com/mattermost/
steps:
- run:
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
--env MM_SQLSETTINGS_DATASOURCE=postgres \
-v ~/go/src:/go/src \
-w /go/src/github.com/mattermost/mmctl \
mattermost/mattermost-build-server:20201119_golang-1.15.5 \
mattermost/mattermost-build-server:20210810_golang-1.16.7 \
bash -c 'ulimit -n 8096 && make coverage'
- codecov/upload:
file: coverage.txt
Expand Down
15 changes: 7 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ include:
ref: master
file: private.yml

variables:
IMAGE_BUILD_MMCTL: $CI_REGISTRY/mattermost/ci/images/mattermost-build-server:20210824_golang-1.17.0
IMAGE_BUILD_SERVER: $CI_REGISTRY/mattermost/ci/images/mattermost-build-server:20210810_golang-1.16.7

docs:
stage: test
image: $CI_REGISTRY/mattermost/ci/images/mattermost-build-server:20201119_golang-1.15.5
image: $IMAGE_BUILD_MMCTL
script:
- echo $CI_COMMIT_REF_NAME
- echo "Making sure docs are updated"
Expand Down Expand Up @@ -62,7 +66,7 @@ lint:
--env MM_SQLSETTINGS_DATASOURCE=postgres \
-v /builds/${CI_PROJECT_NAMESPACE}:/mattermost \
-w /mattermost/mmctl \
$CI_REGISTRY/mattermost/ci/images/mattermost-build-server:20201119_golang-1.15.5 \
$IMAGE_BUILD_SERVER \
bash -c 'ulimit -n 8096; ls -al; make test-all'
- docker logs -f server
- exit $(docker inspect server --format='{{.State.ExitCode}}')
Expand All @@ -71,15 +75,10 @@ lint:

build:
stage: test
image: $CI_REGISTRY/mattermost/ci/images/mattermost-build-server:20201119_golang-1.15.5
image: $IMAGE_BUILD_MMCTL
script:
- make package
artifacts:
paths:
- build
expire_in: 3 hours
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
- if: '$CI_COMMIT_REF_NAME =~ /^v.*\d/' # release
- if: '$CI_COMMIT_REF_NAME =~ /^v.*\D{3,}/' # -rc
- if: '$CI_COMMIT_REF_NAME =~ /^release-/'
1 change: 1 addition & 0 deletions commands/main_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

//go:build e2e
// +build e2e

package commands
Expand Down
1 change: 1 addition & 0 deletions commands/mmctl_e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

//go:build e2e
// +build e2e

package commands
Expand Down
1 change: 1 addition & 0 deletions commands/mmctl_unit_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

//go:build unit
// +build unit

package commands
Expand Down
1 change: 1 addition & 0 deletions commands/utils_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

//go:build linux || darwin
// +build linux darwin

package commands
Expand Down
1 change: 1 addition & 0 deletions magefile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

//go:build mage
// +build mage

package main
Expand Down