diff --git a/.cirrus.yml b/.cirrus.yml index a5aa8a97..bd730c93 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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: diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3a03c998 --- /dev/null +++ b/.travis.yml @@ -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) \ No newline at end of file