Nenhuma descrição

.travis.yml 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. sudo: false
  2. addons:
  3. jwt:
  4. secure: UmbBQ73ydIzhTCfaTb/g0beTwnOHjYxlILmQYK2Tl9Gna/KbpawiVmbloX1eZakevkeYgzQmAHEF0LyDINy5AUk97azYeP0Sz/IOjIDfXAdc6U6sZb7BScneBMt6ET/hCprG4f3mbmleQ+gx+dmNWez6rlb3Xu+XWfJuwDfAWm0=
  5. env:
  6. global:
  7. - SAUCE_USERNAME=snay
  8. - TRAVIS_NODE_VERSION="4.2"
  9. matrix:
  10. include:
  11. - env: PLATFORM=browser-chrome
  12. os: linux
  13. language: node_js
  14. node_js: '4.2'
  15. - env: PLATFORM=browser-firefox
  16. os: linux
  17. language: node_js
  18. node_js: '4.2'
  19. - env: PLATFORM=browser-safari
  20. os: linux
  21. language: node_js
  22. node_js: '4.2'
  23. - env: PLATFORM=browser-edge
  24. os: linux
  25. language: node_js
  26. node_js: '4.2'
  27. - env: TEST_DIR=.
  28. language: objective-c
  29. osx_image: xcode7
  30. - env: TEST_DIR=./tests/ios
  31. language: objective-c
  32. osx_image: xcode7
  33. - env: PLATFORM=ios-9.3
  34. os: osx
  35. osx_image: xcode7.3
  36. language: node_js
  37. node_js: '4.2'
  38. - env: PLATFORM=ios-10.0
  39. os: osx
  40. osx_image: xcode7.3
  41. language: node_js
  42. node_js: '4.2'
  43. - env: PLATFORM=android-4.4
  44. os: linux
  45. language: android
  46. jdk: oraclejdk8
  47. android:
  48. components:
  49. - tools
  50. - extra-android-m2repository
  51. - build-tools-26.0.2
  52. - env: PLATFORM=android-5.1
  53. os: linux
  54. language: android
  55. jdk: oraclejdk8
  56. android:
  57. components:
  58. - tools
  59. - extra-android-m2repository
  60. - build-tools-26.0.2
  61. - env: PLATFORM=android-6.0
  62. os: linux
  63. language: android
  64. jdk: oraclejdk8
  65. android:
  66. components:
  67. - tools
  68. - extra-android-m2repository
  69. - build-tools-26.0.2
  70. - env: PLATFORM=android-7.0
  71. os: linux
  72. language: android
  73. jdk: oraclejdk8
  74. android:
  75. components:
  76. - tools
  77. - extra-android-m2repository
  78. - build-tools-26.0.2
  79. before_install:
  80. - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
  81. && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
  82. install $TRAVIS_NODE_VERSION
  83. - node --version
  84. - if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi
  85. - if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi
  86. - if [[ "$PLATFORM" =~ android ]]; then echo y | android update sdk -u --filter android-22,android-23,android-24,android-25,android-26;
  87. fi
  88. - git clone https://github.com/apache/cordova-paramedic /tmp/paramedic && pushd /tmp/paramedic
  89. && npm install && popd
  90. - npm install -g cordova
  91. install:
  92. - npm install
  93. script:
  94. - if [[ "$TEST_DIR" != "" ]];
  95. then cd $TEST_DIR && npm install && (npm test || npm test);
  96. else node /tmp/paramedic/main.js --config pr/$PLATFORM --plugin $(pwd) --shouldUseSauce
  97. --buildName travis-plugin-splashscreen-$TRAVIS_JOB_NUMBER;
  98. fi