Migrate to github ci/cd

pull/3/head
Toni Melisma 4 years ago committed by Toni Melisma
parent 600d53e1ad
commit 322515a30b

BIN
.DS_Store vendored

Binary file not shown.

@ -0,0 +1,47 @@
name: build
on: [ push, pull_request ]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
env:
CGO_CFLAGS_ALLOW: -Xpreprocessor
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macOS-10.15, macos-11.0]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install linux deps
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04'
run: |
sudo add-apt-repository -y ppa:tonimelisma/ppa
sudo apt-get -y install libvips-dev
- name: Install macos deps
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11.0'
run: |
brew install vips
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v ./cmd/fastgallery
- name: Test
run: go test -v -coverprofile=profile.cov ./...
- name: Coveralls
if: matrix.os == 'ubuntu-20.04'
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

@ -1,29 +0,0 @@
language: go
go:
- 1.15
env:
- CGO_CFLAGS_ALLOW="-Xpreprocessor"
matrix:
include:
- os: osx
osx_image: xcode12.2
- os: linux
dist: bionic
- os: linux
dist: focal
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:tonimelisma/ppa; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y install libvips-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install vips; fi
- go get github.com/mattn/goveralls
script:
- make deps
- make test
- $GOPATH/bin/goveralls -service=travis-ci

@ -1,5 +1,7 @@
Thank you for considering helping out!!
Thank you for considering helping out!
I appreciate discussing possible patches/PRs in advance so we're aligned with the development roadmap.
For bug fixes and minor stuff, just send a PR.
For new functionality and larger changes, please open an issue first so we can discuss approach.
Please create tests for any new functionality or bugs you fixed.

Loading…
Cancel
Save