1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Merge pull request #52 from oceanprotocol/feature/travis

init travis
This commit is contained in:
Ahmed Ali 2020-06-16 18:30:40 +02:00 committed by GitHub
commit f9c5dca065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 2 deletions

27
.travis.yml Normal file
View File

@ -0,0 +1,27 @@
dist: xenial
sudo: required
language: node_js
node_js:
- '12'
services:
- docker
cache: npm
matrix:
fast_finish: true
before_install:
- npm install -g npm
- npm install -g ganache-cli@~6.5.1
before_script:
- ganache-cli --port 18545 > ganache-cli.log &
script:
- npm run lint
- npm run build
notifications:
email: false

View File

@ -1,5 +1,6 @@
[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)
|[![Build Status](https://travis-ci.com/oceanprotocol/lib-js.svg?token=soMi2nNfCZq19zS1Rx4i&branch=develop)](https://travis-ci.com/oceanprotocol/lib-js)
<h1 align="center">Ocean-js</h1>

6
package-lock.json generated
View File

@ -583,6 +583,12 @@
"fastq": "^1.6.0"
}
},
"@oceanprotocol/contracts": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.2.0.tgz",
"integrity": "sha512-7nKNlD2z4FyjQbzBaFJ4JO5jiu3BQG4gESy8ARsq2sXrkSfhDa4RQPuRU9IxubvPZebUkumzmgRt+7afNn+Oew==",
"dev": true
},
"@octokit/auth-token": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.1.tgz",

View File

@ -6,10 +6,9 @@
"typings": "./dist/node/lib.d.ts",
"unpkg": "./dist/browser/lib.cjs2.min.js",
"scripts": {
"build": "npm run clean && npm run build:tsc && npm run build:dist",
"build": "npm run clean && npm run build:metadata && npm run build:tsc",
"build:tsc": "tsc --sourceMap",
"build:metadata": "./scripts/get-metadata.js > src/metadata.json",
"build:dist": "cross-env NODE_ENV=production webpack",
"clean": "rm -rf ./dist/ ./doc/ ./.nyc_output",
"lint": "eslint --ignore-path .gitignore --ext .ts,.tsx .",
"format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'",
@ -47,6 +46,7 @@
},
"devDependencies": {
"@release-it/bumper": "^1.1.0",
"@oceanprotocol/contracts": "0.2.0",
"@truffle/hdwallet-provider": "^1.0.33",
"@types/chai": "^4.2.11",
"@types/chai-spies": "^1.0.1",