1
0
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:
Matthias Kretschmann 2019-06-26 19:39:13 +02:00
parent 557cfcc8b5
commit 599e712181
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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",

View File

@ -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