-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore blocked remote tests on CI server
- Loading branch information
1 parent
798e365
commit 3288130
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.sf.jabref.support; | ||
|
||
/** | ||
* Checks whether we are on a local development environment and not on a CI server. | ||
* This is needed as some remote fetcher tests are blocked by Google when executed by CI servers. | ||
*/ | ||
public class DevEnvironment { | ||
public static boolean isCIServer() { | ||
// See http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables | ||
// See https://circleci.com/docs/environment-variables | ||
return Boolean.valueOf(System.getenv("CI")); | ||
} | ||
} |