summaryrefslogtreecommitdiffstats
path: root/test/plugins.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins.js')
-rw-r--r--test/plugins.js34
1 files changed, 19 insertions, 15 deletions
diff --git a/test/plugins.js b/test/plugins.js
index 62cf9ba..8d386af 100644
--- a/test/plugins.js
+++ b/test/plugins.js
@@ -81,21 +81,25 @@ describe('Plugins', function() {
})
.should.be.fulfilledWith(1);
});
- it('should correctly install dependencies from GitHub via ssh', function() {
- return mock.setupBook({
- 'book.json': {
- plugins: ['ga@git@github.com:GitbookIO/plugin-ga.git#master']
- }
- })
- .then(function(book) {
- return book.prepareConfig()
- .then(function() {
- var plugins = new PluginsManager(book);
- return plugins.install();
- });
- })
- .should.be.fulfilledWith(1);
- });
+
+ // This test requires a SSH key, we only run it locally
+ if (!process.env.CI) {
+ it('should correctly install dependencies from GitHub via ssh', function() {
+ return mock.setupBook({
+ 'book.json': {
+ plugins: ['ga@git@github.com:GitbookIO/plugin-ga.git#master']
+ }
+ })
+ .then(function(book) {
+ return book.prepareConfig()
+ .then(function() {
+ var plugins = new PluginsManager(book);
+ return plugins.install();
+ });
+ })
+ .should.be.fulfilledWith(1);
+ });
+ }
});
describe('Loading', function() {