Skip to content

Commit

Permalink
(Android) Example-project: Always run headless on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed Dec 22, 2019
1 parent 5e6ecc1 commit 257f854
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/demo-react-native-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"test:ios-release-ci": "detox test --configuration ios.sim.release -l verbose --workers 2",
"test:jest-circus:ios-release": "detox test --configuration ios.sim.release -l verbose -o e2e/config-circus.json",
"test:jest-circus:ios-release-ci": "detox test --configuration ios.sim.release -l verbose -o e2e/config-circus.json --workers 2",
"test:android-release": "detox test --configuration android.emu.release -l verbose",
"test:android-release-ci": "detox test --configuration android.emu.release -l verbose --workers 2",
"test:jest-circus:android-release": "detox test --configuration android.emu.release -l verbose -o e2e/config-circus.json",
"test:jest-circus:android-release-ci": "detox test --configuration android.emu.release -l verbose -o e2e/config-circus.json --workers 2"
"test:android-release": "detox test --configuration android.emu.release",
"test:android-release-ci": "detox test --configuration android.emu.release -l verbose --workers 2 --headless",
"test:jest-circus:android-release": "detox test --configuration android.emu.release -o e2e/config-circus.json",
"test:jest-circus:android-release-ci": "detox test --configuration android.emu.release -o e2e/config-circus.json -l verbose --workers 2 --headless"
},
"devDependencies": {
"detox": "^14.9.1",
Expand Down
8 changes: 5 additions & 3 deletions examples/demo-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"build:android-debug": "detox build --configuration android.emu.debug",
"build:android-release": "detox build --configuration android.emu.release",
"test:ios": "detox test --configuration ios.sim.debug",
"test:android-debug": "detox test --configuration android.emu.debug -l verbose",
"test:android-release": "detox test --configuration android.emu.release -l verbose",
"test:android-explicit-require": "detox test e2eExplicitRequire -c android.emu.release -l verbose --runner-config e2eExplicitRequire/mocha.opts",
"test:android-debug": "detox test --configuration android.emu.debug",
"test:android-release": "detox test --configuration android.emu.release",
"test:android-release-ci": "detox test --configuration android.emu.release -l verbose --headless",
"test:android-explicit-require": "detox test e2eExplicitRequire -c android.emu.release --runner-config e2eExplicitRequire/mocha.opts",
"test:android-explicit-require-ci": "detox test e2eExplicitRequire -c android.emu.release --runner-config e2eExplicitRequire/mocha.opts -l verbose --headless",
"e2e:ios": "npm run build:ios && npm run test:ios",
"e2e:android-debug": "npm run build:android-debug && npm run test:android-debug",
"e2e:android-release": "npm run build:android-release && npm run test:android-release"
Expand Down
8 changes: 4 additions & 4 deletions scripts/demo-projects.android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ popd

pushd examples/demo-react-native
run_f "npm run build:android-release"
run_f "npm run test:android-release -- --device-launch-args=\"-read-only\" --headless"
run_f "npm run test:android-explicit-require"
run_f "npm run test:android-release-ci -- --device-launch-args=\"-read-only\""
run_f "npm run test:android-explicit-require-ci"
popd

pushd examples/demo-react-native-jest
run_f "npm run test:android-release-ci -- --headless"
run_f "npm run test:jest-circus:android-release-ci -- --headless"
run_f "npm run test:android-release-ci"
run_f "npm run test:jest-circus:android-release-ci"
popd

0 comments on commit 257f854

Please sign in to comment.