travis.yml.bak 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. matrix:
  2. include:
  3. # # Job 1) Run analyzer
  4. # - os: linux
  5. # env:
  6. # - SHARD=Analyze
  7. # sudo: false
  8. # addons:
  9. # apt:
  10. # # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
  11. # sources:
  12. # - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
  13. # packages:
  14. # - libstdc++6
  15. # - fonts-droid
  16. # before_script:
  17. # - git clone https://github.com/flutter/flutter.git
  18. # - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  19. # - flutter doctor
  20. # - pub global activate flutter_plugin_tools
  21. # script:
  22. # - ./script/incremental_build.sh analyze
  23. # Job 2) Run dart unit tests
  24. - os: linux
  25. env:
  26. - SHARD=Format+Test
  27. jdk: oraclejdk8
  28. sudo: false
  29. addons:
  30. apt:
  31. # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
  32. sources:
  33. - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
  34. - llvm-toolchain-precise # for clang-format-5.0
  35. packages:
  36. - libstdc++6
  37. - fonts-droid
  38. - clang-format-5.0
  39. before_script:
  40. - git clone --depth=1 https://github.com/flutter/flutter.git
  41. - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  42. - flutter doctor
  43. script:
  44. - flutter test
  45. # Job 3.1) Build example APKs and run Java tests, shard 1/2
  46. - os: linux
  47. env:
  48. - SHARD="Build example apks 1/2"
  49. - PLUGIN_SHARDING="--shardIndex 0 --shardCount 2"
  50. jdk: oraclejdk8
  51. sudo: false
  52. addons:
  53. apt:
  54. # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
  55. sources:
  56. - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
  57. packages:
  58. - lib32stdc++6 # https://github.com/flutter/flutter/issues/6207
  59. - libstdc++6
  60. - fonts-droid
  61. before_script:
  62. - ./scripts/before_build_apks.sh
  63. - export ANDROID_HOME=`pwd`/android-sdk
  64. - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  65. - export FLUTTER_HOME=`pwd`/flutter
  66. script:
  67. - cd example/android
  68. - ./gradlew test -DflutterPath=$FLUTTER_HOME
  69. # # Job 3.2) Build example APKs and run Java tests, shard 2/2
  70. # - os: linux
  71. # env:
  72. # - SHARD="Build example apks 2/2"
  73. # - PLUGIN_SHARDING="--shardIndex 1 --shardCount 2"
  74. # jdk: oraclejdk8
  75. # sudo: false
  76. # addons:
  77. # apt:
  78. # # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
  79. # sources:
  80. # - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
  81. # packages:
  82. # - lib32stdc++6 # https://github.com/flutter/flutter/issues/6207
  83. # - libstdc++6
  84. # - fonts-droid
  85. # before_script:
  86. # - ./script/before_build_apks.sh
  87. # - export ANDROID_HOME=`pwd`/android-sdk
  88. # - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  89. # script:
  90. # - ./script/incremental_build.sh build-examples --apk
  91. # - ./script/incremental_build.sh java-test # must come after apk build
  92. cache:
  93. directories:
  94. - $HOME/.pub-cache