Add circle.yml and move testrpc command to top-level repo
This commit is contained in:
		
							
								
								
									
										23
									
								
								circle.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								circle.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
machine:
 | 
			
		||||
  node:
 | 
			
		||||
    version: 6.5.0
 | 
			
		||||
  environment:
 | 
			
		||||
      CONTRACTS_COMMIT_HASH: '78fe8dd'
 | 
			
		||||
      PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
 | 
			
		||||
 | 
			
		||||
dependencies:
 | 
			
		||||
  override:
 | 
			
		||||
    - yarn
 | 
			
		||||
  cache_directories:
 | 
			
		||||
    - ~/.cache/yarn
 | 
			
		||||
 | 
			
		||||
test:
 | 
			
		||||
  override:
 | 
			
		||||
    - wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT_HASH}.zip
 | 
			
		||||
    - unzip ${CONTRACTS_COMMIT_HASH}.zip -d testrpc_snapshot
 | 
			
		||||
    - npm run testrpc -- --db testrpc_snapshot:
 | 
			
		||||
        background: true
 | 
			
		||||
    - lerna run test:coverage
 | 
			
		||||
    - lerna run report_test_coverage
 | 
			
		||||
    - if [ $CIRCLE_BRANCH = "master" ]; then lerna run test:umd; fi
 | 
			
		||||
    - lerna run lint
 | 
			
		||||
							
								
								
									
										11
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								package.json
									
									
									
									
									
								
							@@ -3,5 +3,14 @@
 | 
			
		||||
    "name": "0x.js",
 | 
			
		||||
    "workspaces": [
 | 
			
		||||
        "packages/*"
 | 
			
		||||
    ]
 | 
			
		||||
    ],
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
 | 
			
		||||
    },
 | 
			
		||||
    "config": {
 | 
			
		||||
      "mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"
 | 
			
		||||
    },
 | 
			
		||||
    "devDependencies": {
 | 
			
		||||
        "lerna": "^2.5.1"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,6 @@
 | 
			
		||||
    "test:coverage": "nyc npm run test --all",
 | 
			
		||||
    "report_test_coverage": "nyc report --reporter=text-lcov | coveralls",
 | 
			
		||||
    "update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
 | 
			
		||||
    "testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
 | 
			
		||||
    "docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json docs/index.json .",
 | 
			
		||||
    "docs:generate": "typedoc --out docs .",
 | 
			
		||||
    "docs:open": "opn docs/index.html",
 | 
			
		||||
@@ -40,7 +39,6 @@
 | 
			
		||||
  },
 | 
			
		||||
  "config": {
 | 
			
		||||
    "artifacts": "TokenTransferProxy Exchange TokenRegistry Token EtherToken",
 | 
			
		||||
    "mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"
 | 
			
		||||
  },
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user