Skip to content
Closed
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
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@ notifications:
on_success: never
on_failure: change

os:
- osx
dist: trusty

matrix:
include:
- os: linux
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang

addons:
apt:
packages:
# by default the container VMs have Git 1.9.1, ermagherd...
- git-all
# this is required to compile keytar
- libsecret-1-dev
# this package is essential for testing Electron in a headless fashion
# https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md
- xvfb

branches:
only:
Expand Down
7 changes: 5 additions & 2 deletions app/src/lib/editors/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ export async function getAvailableEditors(): Promise<
return editorCache
}

return Promise.reject(
log.warn(
`Platform not currently supported for resolving editors: ${process.platform}`
)

return []
}

/**
Expand All @@ -49,9 +51,10 @@ export function getFirstEditorOrDefault(): Promise<FoundEditor | null> {
return getFirstEditorOrDefaultWindows()
}

return Promise.reject(
log.warn(
`Platform not currently supported for resolving editors: ${process.platform}`
)
return Promise.resolve(null)
}

/**
Expand Down