Skip to content
Permalink
Browse files

Add PR_DISABLED tag to long e2e tests and avoid running them on each PR

We still run all tests on successful merges to 'master'
  • Loading branch information...
KtorZ committed Jul 11, 2019
1 parent ccc3406 commit 5ed21510e58843ca636f5c4be261099ae6583f48
Showing with 12 additions and 12 deletions.
  1. +2 −2 .travis.yml
  2. +5 −5 lib/http-bridge/test/integration/Main.hs
  3. +5 −5 lib/jormungandr/test/integration/Main.hs
@@ -120,13 +120,13 @@ jobs:
script:
- travis_retry curl -L -o hermes-testnet.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/lib/http-bridge/test/data/cardano-http-bridge/hermes-testnet.tar.gz
- tar xzf hermes-testnet.tar.gz -C $HOME
- stack --no-terminal test --fast cardano-wallet-http-bridge:integration
- stack --no-terminal test --fast cardano-wallet-http-bridge:integration --ta "--skip PR_DISABLED"

- stage: checks 🔬
if: type = pull_request OR (branch IN (bors/staging, bors/trying))
name: "Tests: integration (jormungandr)"
script:
- stack --no-terminal test --fast cardano-wallet-jormungandr:integration
- stack --no-terminal test --fast cardano-wallet-jormungandr:integration --ta "--skip PR_DISABLED"

################################################################################
#
@@ -113,7 +113,7 @@ main = do
hSetEncoding stdout utf8
hSetEncoding stderr utf8
hspec $ do
describe "Server CLI timeout test" (ServerCLI.specNoBackend @t)
describe "PR_DISABLED Server CLI timeout test" (ServerCLI.specNoBackend @t)
describe "Cardano.WalletSpec" Wallet.spec
describe "Cardano.Wallet.HttpBridge.NetworkSpec" HttpBridge.spec
describe "Launcher CLI tests" (LauncherCLI.spec @t)
@@ -139,16 +139,16 @@ main = do
PortCLI.specCommon @t
PortCLI.specWithRandomPort @t defaultPort
beforeAll startCluster $ afterAll _cleanup $ after tearDown $ do
describe "Wallets API endpoint tests" (Wallets.spec @t)
describe "Transactions API endpoint tests" (Transactions.spec @t)
describe "Addresses API endpoint tests" (Addresses.spec @t)
describe "PR_DISABLED Wallets API endpoint tests" (Wallets.spec @t)
describe "PR_DISABLED Transactions API endpoint tests" (Transactions.spec @t)
describe "PR_DISABLED Addresses API endpoint tests" (Addresses.spec @t)
describe "Wallets CLI tests" (WalletsCLI.spec @t)
describe "Transactions CLI tests" (TransactionsCLI.spec @t)
describe "Addresses CLI tests" (AddressesCLI.spec @t)
describe "Server CLI tests" (ServerCLI.spec @t)
describe "Transactions CLI tests (bridge specific)"
(TransactionsCLIBridge.spec @t)
describe "Transactions API endpoint tests (bridge specific)"
describe "PR_DISABLED Transactions API endpoint tests (bridge specific)"
(TransactionsBridge.spec @t)
where
oneSecond :: Int
@@ -108,19 +108,19 @@ instance KnownCommand (Jormungandr n) where

main :: forall t. (t ~ Jormungandr 'Testnet) => IO ()
main = hspec $ do
describe "Server CLI timeout test" (ServerCLI.specNoBackend @t)
describe "PR_DISABLED Server CLI timeout test" (ServerCLI.specNoBackend @t)
describe "Cardano.Wallet.NetworkSpec" Network.spec
describe "Mnemonics CLI tests" (MnemonicsCLI.spec @t)
describe "Miscellaneous CLI tests" (MiscellaneousCLI.spec @t)
describe "Ports CLI (negative) tests" (PortCLI.specNegative @t)
describe "Launcher CLI tests" (LauncherCLI.spec @t)
beforeAll (start Nothing) $ afterAll _cleanup $ after tearDown $ do
-- API e2e Testing
describe "Addresses API endpoint tests" Addresses.spec
describe "Transactions API endpoint tests" Transactions.spec
describe "Transactions API endpoint tests (Jormungandr specific)"
describe "PR_DISABLED Addresses API endpoint tests" Addresses.spec
describe "PR_DISABLED Transactions API endpoint tests" Transactions.spec
describe "PR_DISABLED Transactions API endpoint tests (Jormungandr specific)"
(TransactionsJormungandr.spec @t)
describe "Wallets API endpoint tests" Wallets.spec
describe "PR_DISABLED Wallets API endpoint tests" Wallets.spec
-- Command-Line e2e Testing
describe "Addresses CLI tests" (AddressesCLI.spec @t)
describe "Server CLI tests" (ServerCLI.spec @t)

0 comments on commit 5ed2151

Please sign in to comment.
You can’t perform that action at this time.