This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - run: avdmanager create avd -n Nexus_5X_API_26_x86 -k "system-images;android-26;default;x86" -d "Nexus 5X" | |
| - run: osascript ./fastlane/recording_related/dismiss_warning.scpt # Dismisses the same named computer error | |
| - run: | |
| name: Run emulator in background | |
| command: /usr/local/share/android-sdk/tools/emulator @Nexus_5X_API_26_x86 -skin 1080x2066 -memory 2048 -noaudio | |
| background: true | |
| - run: | |
| name: Run Tests | |
| command: bundle exec fastlane ui_test | |
| no_output_timeout: 30m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - *restore_gradle_cache | |
| - *android_dependencies | |
| - *save_gradle_cache | |
| - *restore_gems_cache | |
| - *ruby_dependencies | |
| - *save_gems_cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run: | |
| name: Install emulator | |
| command: (yes | sdkmanager "platform-tools" "platforms;android-26" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;26.0.0" "system-images;android-26;default;x86" "emulator" --verbose) || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - run: | |
| name: Install Android sdk | |
| command: | | |
| HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask | |
| HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - run: | |
| name: Setup environment variables | |
| command: | | |
| echo 'export PATH="$PATH:/usr/local/opt/node@8/bin:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV | |
| echo 'export ANDROID_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV | |
| echo 'export ANDROID_SDK_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV | |
| echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> $BASH_ENV | |
| echo 'export QEMU_AUDIO_DRV=none' >> $BASH_ENV | |
| echo 'export JAVA_HOME=/Library/Java/Home' >> $BASH_ENV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| workflows: | |
| version: 2 | |
| commit-workflow: | |
| jobs: | |
| - ui_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| reference: | |
| ## Paths | |
| gradle_cache_path: &gradle_cache_path | |
| gradle_cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
| gems_cache_path: &gems_cache_path | |
| gems_cache-{{ checksum "Gemfile.lock" }} | |
| workspace: &workspace | |
| ~/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default_platform(:ios) | |
| platform :ios do | |
| slack_url = "<YOUR-SLACK-WEBHOOK>" | |
| video_finished = false | |
| before_all do | |
| setup_circle_ci | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2 | |
| references: | |
| ## Paths | |
| test_video_mp4_path: &test_video_mp4_path | |
| /Users/distiller/src/testrecording.mp4 | |
| test_video_mov_path: &test_video_mov_path | |
| /Users/distiller/src/testrecording.mov | |
| workspace: &workspace | |
| ~/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "QuickTime Player" | |
| set recording to document "screen recording" | |
| tell recording | |
| pause | |
| set current_path to do shell script "pwd" | |
| set file_path to current_path & "/testrecording.mov" | |
| save in (file_path as POSIX file) | |
| -- export in ("../testrecording.mov" as POSIX file) using settings preset "480p" | |
| stop | |
| return "Test recording saved to " & file_path |