mirror of https://github.com/perkeep/perkeep.git
Ci: move continuous integration tests to GitHub Actions
And remove the Travis CI ones.
This commit is contained in:
parent
53b60fb65a
commit
f2e7add71b
|
@ -1,12 +0,0 @@
|
|||
version: '{branch}-{build}'
|
||||
skip_tags: true
|
||||
image: Visual Studio 2017
|
||||
clone_folder: c:\gopath\src\perkeep.org
|
||||
environment:
|
||||
GOPATH: c:\gopath
|
||||
PATH: c:\gopath\bin;c:\go\bin;%PATH%
|
||||
CGO_ENABLED: 0
|
||||
build_script:
|
||||
- cmd: go run make.go
|
||||
test_script:
|
||||
- cmd: devcam test
|
|
@ -0,0 +1,32 @@
|
|||
on: [push, pull_request]
|
||||
name: "tests/linux"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.x, 1.13.x]
|
||||
platform: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
|
||||
- name: Symlink source into GOPATH for devcam
|
||||
run: |
|
||||
mkdir $(go env GOPATH)/src
|
||||
ln -s $(pwd) $(go env GOPATH)/src/perkeep.org
|
||||
|
||||
- name: Build and test
|
||||
run: |
|
||||
go run make.go -v=true -sqlite=true
|
||||
devcam test -sqlite=true
|
|
@ -0,0 +1,32 @@
|
|||
on: [push, pull_request]
|
||||
name: "tests/windows"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.13.x]
|
||||
platform: [windows-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
|
||||
- name: Symlink source into GOPATH for devcam
|
||||
run: |
|
||||
mkdir "$(go env GOPATH)/src"
|
||||
New-Item -ItemType SymbolicLink -Path "$(go env GOPATH)/src/perkeep.org" -Target "$(pwd)"
|
||||
|
||||
- name: Build and test
|
||||
run: |
|
||||
go run make.go -v
|
||||
devcam test
|
21
.travis.yml
21
.travis.yml
|
@ -1,21 +0,0 @@
|
|||
sudo: required
|
||||
dist: trusty
|
||||
go_import_path: perkeep.org
|
||||
language: go
|
||||
go:
|
||||
- "1.13.x"
|
||||
before_install:
|
||||
- sudo apt-get install -qq pkg-config fuse build-essential
|
||||
- sudo modprobe fuse
|
||||
- sudo chmod 666 /dev/fuse
|
||||
- sudo chown root:$USER /etc/fuse.conf
|
||||
install: go run make.go -v=true -sqlite=true
|
||||
script: ${GOPATH}/bin/devcam test -sqlite=true
|
||||
|
||||
notifications:
|
||||
webhooks:
|
||||
urls:
|
||||
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MGxpbmRuZXIlM0FtYXRyaXgub3JnLyUyMW5yT1prcEV0UG1WeEFnaGxTSCUzQW1hdHJpeC5vcmc"
|
||||
on_success: change # always|never|change
|
||||
on_failure: always
|
||||
on_start: never
|
|
@ -20,12 +20,8 @@
|
|||
|
||||
### Continuous Integration
|
||||
|
||||
<table><tr>
|
||||
<td>Linux: </td>
|
||||
<td><a href='https://travis-ci.org/perkeep/perkeep'><img style='vertical-align:middle' src='https://travis-ci.org/perkeep/perkeep.svg?branch=master'></td>
|
||||
<td>Windows: </td>
|
||||
<td><a href='https://ci.appveyor.com/project/mpl/perkeep/branch/master'><img src='https://ci.appveyor.com/api/projects/status/bbdqxcy2b6x4lt2r/branch/master?svg=true'></td>
|
||||
</tr></table>
|
||||
[![Linux Test Status](https://github.com/perkeep/perkeep/workflows/tests/linux/badge.svg)](https://github.com/perkeep/perkeep/actions?query=workflow:tests/linux)
|
||||
[![Windows Test Status](https://github.com/perkeep/perkeep/workflows/tests/windows/badge.svg)](https://github.com/perkeep/perkeep/actions?query=workflow:tests/windows)
|
||||
|
||||
### Code of Conduct
|
||||
|
||||
|
|
Loading…
Reference in New Issue