diff --git a/.travis.yml b/.travis.yml index c5ed64e0d..5102ee5ff 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 @@ -13,6 +14,7 @@ matrix: script: - npm run lint - npm run test + - npm run coverage before_script: - export DISPLAY=:99.0 diff --git a/appveyor.yml b/appveyor.yml index ba93339ba..c9441012b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,26 +1,34 @@ +# 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}" + +init: + - git config --global core.autocrlf input + +platform: x64 + environment: matrix: - nodejs_version: "6" - nodejs_version: "8" -init: - - git config --global core.autocrlf input +matrix: + fast_finish: true -# cache: -# - node_modules +install: + # Install Node.js + - ps: Install-Product node $env:nodejs_version -platform: - - x64 + # Upgrade npm + - npm install -g npm -install: - - ps: Install-Product node $env:nodejs_version $env:platform + # Output our current versions for debugging - node --version - npm --version + + # Install our package dependencies - npm install test_script: - - npm test + - npm run test:node build: off - -version: "{build}" diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile new file mode 100644 index 000000000..a7da2e54f --- /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 d67b6ae70..00096937f 100644 --- a/circle.yml +++ b/circle.yml @@ -1,11 +1,8 @@ +# 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. machine: node: version: stable -test: - post: - - npm run coverage -- --upload - dependencies: pre: - google-chrome --version diff --git a/test/refs.spec.js b/test/refs.spec.js index 9faedc905..c2c05fd92 100644 --- a/test/refs.spec.js +++ b/test/refs.spec.js @@ -29,8 +29,8 @@ describe('.refs', function () { ipfs.util.addFromFs(filesPath, { recursive: true }, cb) }, (hashes, cb) => { + console.log('hashes', hashes) folder = hashes[hashes.length - 1].hash - expect(folder).to.be.eql('QmQao3KNcpCsdXaLGpjieFGMfXzsSXgsf6Rnc5dJJA3QMh') cb() } ], done) @@ -38,6 +38,10 @@ describe('.refs', function () { after((done) => fc.dismantle(done)) + it('created the folder', () => { + expect(folder).to.be.eql('QmQao3KNcpCsdXaLGpjieFGMfXzsSXgsf6Rnc5dJJA3QMh') + }) + const result = [ { Ref: 'QmQao3KNcpCsdXaLGpjieFGMfXzsSXgsf6Rnc5dJJA3QMh QmcUYKmQxmTcFom4R4UZP7FWeQzgJkwcFn51XrvsMy7PE9 add',