mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
fail faster on Travis
This commit is contained in:
parent
557cfcc8b5
commit
599e712181
@ -29,7 +29,10 @@ before_install:
|
||||
|
||||
script:
|
||||
# - ./scripts/install.sh # runs automatically with npm ci
|
||||
# executing `npm test` scripts individually here, so first one failing will exit the build
|
||||
- npm run lint || travis_terminate 1
|
||||
- ./scripts/test.sh || travis_terminate 1
|
||||
- npm run test:e2e || travis_terminate 1
|
||||
- ./scripts/coverage.sh
|
||||
- ./scripts/build.sh
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
"start": "concurrently \"cd client && npm start\" \"cd server && npm start\"",
|
||||
"start:commons-and-ganache": "concurrently 'npm run start:ganache' 'npm run start'",
|
||||
"build": "./scripts/build.sh",
|
||||
"test": "npm run lint && scripts/test.sh",
|
||||
"test": "npm run lint && scripts/test.sh && npm run test:e2e",
|
||||
"test:e2e": "start-test start:commons-and-ganache http-get://localhost:3000 cypress:run",
|
||||
"test:watch": "npm run lint && concurrently \"cd client && npm run test:watch\" \"cd server && npm run test:watch\"",
|
||||
"start:ganache": "ganache-cli -m 'stamp polar cup smart ill agree human episode reform trigger text forget' -i 5777",
|
||||
|
@ -1,4 +1,4 @@
|
||||
#/usr/bin/env/sh
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
components="server client"
|
||||
@ -10,7 +10,3 @@ do
|
||||
npm test
|
||||
cd ..
|
||||
done
|
||||
|
||||
echo "Running End-to-End tests"
|
||||
|
||||
npm run test:e2e
|
||||
|
Loading…
Reference in New Issue
Block a user