summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-08 15:11:54 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-08 15:11:54 +0200
commit7ade91a091f5e4c0c193c4df294192e469abd504 (patch)
tree294290d78ecc52371c881f21be7a33bc05a1574f /test
parent4e41f96d89d08bd6319d0a3c6439252f002b04d0 (diff)
downloadgitbook-7ade91a091f5e4c0c193c4df294192e469abd504.zip
gitbook-7ade91a091f5e4c0c193c4df294192e469abd504.tar.gz
gitbook-7ade91a091f5e4c0c193c4df294192e469abd504.tar.bz2
Disable ssh test when ci
Diffstat (limited to 'test')
-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() {