diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..a26af5e7 --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 58a6564d..8239ee1b 100644 --- a/README.md +++ b/README.md @@ -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)

Ocean-js

diff --git a/package-lock.json b/package-lock.json index 64c763bc..f328bb68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 52166316..315dc54a 100644 --- a/package.json +++ b/package.json @@ -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",