Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Updating CI files #644

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -13,6 +14,7 @@ matrix:
script:
- npm run lint
- npm run test
- npm run coverage

before_script:
- export DISPLAY=:99.0
Expand Down
30 changes: 19 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -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}"
2 changes: 2 additions & 0 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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()
5 changes: 1 addition & 4 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion test/refs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ 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)
})

after((done) => fc.dismantle(done))

it('created the folder', () => {
expect(folder).to.be.eql('QmQao3KNcpCsdXaLGpjieFGMfXzsSXgsf6Rnc5dJJA3QMh')
})

const result = [
{
Ref: 'QmQao3KNcpCsdXaLGpjieFGMfXzsSXgsf6Rnc5dJJA3QMh QmcUYKmQxmTcFom4R4UZP7FWeQzgJkwcFn51XrvsMy7PE9 add',
Expand Down