From 322515a30bb7dddf7e5b003281d313e59354e3b4 Mon Sep 17 00:00:00 2001 From: Toni Melisma <59022391+tonimelisma@users.noreply.github.com> Date: Wed, 18 Nov 2020 23:55:10 +0200 Subject: [PATCH] Migrate to github ci/cd --- .DS_Store | Bin 6148 -> 0 bytes .github/workflows/go.yml | 47 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 29 ------------------------ CONTRIBUTING.md | 6 +++-- 4 files changed, 51 insertions(+), 31 deletions(-) delete mode 100644 .DS_Store create mode 100644 .github/workflows/go.yml delete mode 100644 .travis.yml diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2bf9e0054f365790b3d1064a17bf5a6ce4f43d3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5Z-O8ZYW|8q8|6+t%no}?L`Q+9=r(=J*cz^DK-$3(xw)Tk-UYzk&oc( zIJ3JEiv@2Yb_RC8nVp&4%m>*Y#u)F-gBD{A#+ZPH$Wd7#IK0wTF~Nu&=a^0WDDlC1 z^C!ml*8#u1%6t~G*k648{wSQKw*Ag4)!N49mJp&Yw#AJ*P8M$JrSnZk*g85L-aR~KPx;ek%{pS_y3k4F%&0R6syqx&(lM`^bTE dYQIDs;v9p8Mw|u5RXQMD1Qa3E5d*)#zy}Z!PeuR$ diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..933f818 --- /dev/null +++ b/.github/workflows/go.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c1c0978..0000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5523a09..7096b06 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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.