Drop support for Windows (Closes #192)

This commit is contained in:
James Mills 2020-12-11 20:33:53 +10:00
parent 158f6d9888
commit d3428bac8c
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
3 changed files with 4 additions and 20 deletions

@ -1,3 +1,4 @@
---
name: Go name: Go
on: on:
push: push:
@ -9,8 +10,8 @@ jobs:
name: Build and Test name: Build and Test
strategy: strategy:
matrix: matrix:
go-version: [1.12.x, 1.13.x, 1.14.x] go-version: [1.12.x, 1.13.x, 1.14.l, 1.15.xx]
platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Setup Go ${{ matrix.go-version }} - name: Setup Go ${{ matrix.go-version }}

1
.gitignore vendored

@ -8,5 +8,6 @@
/bitcask /bitcask
/bitcaskd /bitcaskd
/bitcask_bench*
/cmd/bitcask/bitcask /cmd/bitcask/bitcask
/cmd/bitcaskd/bitcaskd /cmd/bitcaskd/bitcaskd

@ -9,7 +9,6 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"reflect" "reflect"
"runtime"
"sort" "sort"
"strings" "strings"
"sync" "sync"
@ -53,12 +52,6 @@ func SortByteArrays(src [][]byte) [][]byte {
return sorted return sorted
} }
func skipIfWindows(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skipping this test on Windows")
}
}
func TestAll(t *testing.T) { func TestAll(t *testing.T) {
var ( var (
db *Bitcask db *Bitcask
@ -403,9 +396,6 @@ func TestConfigErrors(t *testing.T) {
} }
func TestAutoRecovery(t *testing.T) { func TestAutoRecovery(t *testing.T) {
if runtime.GOOS == "windows" {
t.SkipNow()
}
withAutoRecovery := []bool{false, true} withAutoRecovery := []bool{false, true}
for _, autoRecovery := range withAutoRecovery { for _, autoRecovery := range withAutoRecovery {
@ -773,8 +763,6 @@ func TestStatsError(t *testing.T) {
}) })
t.Run("Test", func(t *testing.T) { t.Run("Test", func(t *testing.T) {
skipIfWindows(t)
t.Run("FabricatedDestruction", func(t *testing.T) { t.Run("FabricatedDestruction", func(t *testing.T) {
// This would never happen in reality :D // This would never happen in reality :D
// Or would it? :) // Or would it? :)
@ -790,8 +778,6 @@ func TestStatsError(t *testing.T) {
} }
func TestDirFileModeBeforeUmask(t *testing.T) { func TestDirFileModeBeforeUmask(t *testing.T) {
skipIfWindows(t)
assert := assert.New(t) assert := assert.New(t)
t.Run("Setup", func(t *testing.T) { t.Run("Setup", func(t *testing.T) {
@ -874,8 +860,6 @@ func TestDirFileModeBeforeUmask(t *testing.T) {
} }
func TestFileFileModeBeforeUmask(t *testing.T) { func TestFileFileModeBeforeUmask(t *testing.T) {
skipIfWindows(t)
assert := assert.New(t) assert := assert.New(t)
t.Run("Setup", func(t *testing.T) { t.Run("Setup", func(t *testing.T) {
@ -1345,8 +1329,6 @@ func TestMergeErrors(t *testing.T) {
assert := assert.New(t) assert := assert.New(t)
t.Run("RemoveDatabaseDirectory", func(t *testing.T) { t.Run("RemoveDatabaseDirectory", func(t *testing.T) {
skipIfWindows(t)
testdir, err := ioutil.TempDir("", "bitcask") testdir, err := ioutil.TempDir("", "bitcask")
assert.NoError(err) assert.NoError(err)
defer os.RemoveAll(testdir) defer os.RemoveAll(testdir)