From 38450851667069f9930f7045ee6bc22733f26bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=A0=C9=AA=E1=B4=84=E1=B4=9B=E1=B4=8F=CA=80=20=CA=99?= =?UTF-8?q?=E1=B4=8A=E1=B4=87=CA=9F=E1=B4=8B=CA=9C=E1=B4=8F=CA=9F=E1=B4=8D?= Date: Thu, 14 Dec 2017 07:26:56 +0100 Subject: [PATCH] chore: updating CI files (#238) --- .travis.yml | 4 +-- appveyor.yml | 29 +++++++++++++++++++ ci/Jenkinsfile | 2 ++ circle.yml | 2 +- ...wser-swarm-with-muxing-plus-webrtc-star.js | 4 ++- 5 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 appveyor.yml create mode 100644 ci/Jenkinsfile diff --git a/.travis.yml b/.travis.yml index 341df5c..5102ee5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +# Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. sudo: false language: node_js @@ -14,7 +15,6 @@ script: - npm run lint - npm run test - npm run coverage - - make test before_script: - export DISPLAY=:99.0 @@ -29,4 +29,4 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - g++-4.8 \ No newline at end of file + - g++-4.8 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..046bf91 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,29 @@ +# Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. +version: "{build}" + +environment: + matrix: + - nodejs_version: "6" + - nodejs_version: "8" + +matrix: + fast_finish: true + +install: + # Install Node.js + - ps: Install-Product node $env:nodejs_version + + # Upgrade npm + - npm install -g npm + + # Output our current versions for debugging + - node --version + - npm --version + + # Install our package dependencies + - npm install + +test_script: + - npm run test:node + +build: off diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile new file mode 100644 index 0000000..a7da2e5 --- /dev/null +++ b/ci/Jenkinsfile @@ -0,0 +1,2 @@ +// Warning: This file is automatically synced from https://github.com/ipfs/ci-sync so if you want to change it, please change it there and ask someone to sync all repositories. +javascript() diff --git a/circle.yml b/circle.yml index 2c57d11..0009693 100644 --- a/circle.yml +++ b/circle.yml @@ -12,4 +12,4 @@ dependencies: - sudo apt-get install -f - sudo apt-get install --only-upgrade lsb-base - sudo dpkg -i google-chrome.deb - - google-chrome --version \ No newline at end of file + - google-chrome --version diff --git a/test/browser-swarm-with-muxing-plus-webrtc-star.js b/test/browser-swarm-with-muxing-plus-webrtc-star.js index aa837d6..e0c074b 100644 --- a/test/browser-swarm-with-muxing-plus-webrtc-star.js +++ b/test/browser-swarm-with-muxing-plus-webrtc-star.js @@ -105,7 +105,9 @@ describe('high level API (swarm with spdy + webrtc-star)', () => { }) }) - it('create a third node and check that discovery works', (done) => { + it('create a third node and check that discovery works', function (done) { + this.timeout(20 * 1000) + let counter = 0 let swarm3