Skip to content

Commit

Permalink
Test ejecting of the flavor in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Oct 22, 2018
1 parent 7758d4e commit 7aba859
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@ 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:
- create-cycle-app test-app --flavor $(pwd) --yarn
- 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
13 changes: 13 additions & 0 deletions runCI.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7aba859

Please sign in to comment.