added .travis.yml

This commit is contained in:
Lorenzo Pichilli 2021-02-10 13:09:51 +01:00
parent ea2d2cd631
commit 9b16bc45e6
2 changed files with 37 additions and 1 deletions

View File

@ -50,7 +50,7 @@ task:
create_device_script:
echo no | avdmanager create avd --force -n test -k "system-images;android-$EMULATOR_API_LEVEL;$ANDROID_ABI"
start_emulator_background_script:
$ANDROID_SDK_HOME/emulator/emulator-headless -VERBOSE -avd TEST -no-audio -no-window
$ANDROID_SDK_ROOT/emulator/emulator-headless -VERBOSE -avd TEST -no-audio -no-window
pub_cache:
folder: ~/.pub-cache
wait_for_emulator_script:

36
.travis.yml Normal file
View File

@ -0,0 +1,36 @@
language: dart
env:
global:
- DARTSDK=./flutter/bin/cache/dart-sdk/bin
- DARTFMT=$DARTSDK/dartfmt
- FLUTTER=./flutter/bin/flutter
- FLUTTER_UP=../flutter/bin/flutter
- FLUTTER_GITHUB=https://github.com/flutter/flutter.git
- PACKAGES=packages
- ANDROID_API=30
install:
- git clone $FLUTTER_GITHUB -b master --depth 1
- $FLUTTER doctor
- $FLUTTER pub get
jobs:
include:
- stage: iOS Integration Tests
os: osx
osx_image: xcode12.3
before_script:
- brew install node
- cd ./nodejs_server_test_auth_basic_and_ssl
- npm install
- cd ..
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
- export HOMEBREW_NO_AUTO_UPDATE=1
- brew install libimobiledevice ideviceinstaller ios-deploy
- brew install cocoapods || echo 'ignore exit(1)'
- brew link --overwrite cocoapods
- xcrun simctl list
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-12 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
script:
- ./scripts/test.sh $(ipconfig getifaddr en0)