From 7aba859e8f31ef874342698a2933e7ba4e06fb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Mon, 22 Oct 2018 11:52:22 +0300 Subject: [PATCH] Test ejecting of the flavor in CI --- .travis.yml | 14 +++++++++++++- runCI.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 runCI.sh diff --git a/.travis.yml b/.travis.yml index 793b6ff..f4253ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,11 +8,13 @@ cache: yarn: true directories: - node_modules + - /home/travis/.pnpm-store before_install: - npm install -g npm@5 - npm install -g yarn - npm install -g greenkeeper-lockfile@1 - npm install -g create-cycle-app +<<<<<<< Updated upstream before_script: greenkeeper-lockfile-update after_script: greenkeeper-lockfile-upload script: @@ -20,4 +22,14 @@ script: - cd test-app - yarn run build - yarn test - - cd .. + - echo "y\n" | yarn run eject + - yarn run build + - yarn test +======= + +jobs: + include: + - stage: test + script: ./runCI.sh yarn + - script: ./runCI.sh pnpm +>>>>>>> Stashed changes diff --git a/runCI.sh b/runCI.sh new file mode 100755 index 0000000..bef03aa --- /dev/null +++ b/runCI.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +cli=$1 + +set -eu + +create-cycle-app test-app --flavor $(pwd) "--$cli" +cd test-app +"$cli" run build +"$cli" test +"$cli" run eject +"$cli" run build +"$cli" test