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 15ef469
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ 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
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 ..
- curl -L https://unpkg.com/@pnpm/self-installer | node

jobs:
include:
- stage: test
script: ./runCI.sh yarn
- script: ./runCI.sh pnpm
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 15ef469

Please sign in to comment.