mirror of https://gitlab.com/ecentrics/concordia
Apostolos Fanakis
4 years ago
3 changed files with 24 additions and 22 deletions
@ -1,7 +1,3 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
|
|
||||
if [ -z "${SKIP_MIGRATE}" ]; then |
cd /usr/src/concordia/packages/concordia-contracts && yarn _migrate --network "${MIGRATE_NETWORK}" |
||||
cd /usr/src/concordia/packages/concordia-contracts && yarn migrate --network develop |
|
||||
else |
|
||||
echo "Skipping migration..." |
|
||||
fi |
|
||||
|
@ -0,0 +1,18 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
yarn _eslint -f html -o /usr/test-reports/concordia-contracts-eslint.html --no-color && |
||||
|
(yarn _solhint >/usr/test-reports/concordia-contracts-solhint.report) && |
||||
|
(yarn test >/usr/test-reports/concordia-contracts-truffle-tests.report) |
||||
|
|
||||
|
if [ $? -eq 0 ]; then |
||||
|
# Tests ran successfully |
||||
|
if [ -n "${CI}" ]; then |
||||
|
# This is a ci run |
||||
|
# Create a pass file to alert the ci about test success |
||||
|
# mkdir /usr/test-results && touch /usr/test-results/pass |
||||
|
exit 0 |
||||
|
fi |
||||
|
else |
||||
|
echo "SOME TESTS FAILED!" |
||||
|
exit 1 |
||||
|
fi |
Loading…
Reference in new issue