Files
flipper/.travis.yml
Pritesh Nandgaonkar 9095b3a030 Build Sample app rather than just building the sample pods (#251)
Summary:
Currently travis just builds the pods which sample app depends on. The test case which the current setup misses it that it will fail to check if the required header files are exposed to public. The master is broken recently because a header file is not exposed publicly and sample app fails to build, whereas all the dependencies like Sonar and SonarKit build successfully. This PR updates the travis, so that it builds sample app rather than the dependent pods.
Pull Request resolved: https://github.com/facebook/flipper/pull/251

Reviewed By: jknoxville

Differential Revision: D9465234

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 42ab7210d7fa5a3dc2927efee4b4dee95f15c6cd
2018-08-22 12:57:33 -07:00

93 lines
2.2 KiB
YAML

os: osx
osx_image: xcode9.4
matrix:
include:
- language: node_js
os: linux
node_js:
- "10"
install:
- cd website
- yarn
- cd ..
script:
- cd website
- yarn build
- cd ..
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
fqdn: fbflipper.com
local-dir: website/build/flipper
keep-history: true
on:
branch: master
- language: node_js
node_js:
- "10"
install:
- yarn
script:
- yarn lint
- yarn build --mac --version=$TRAVIS_BUILD_NUMBER
- language: objective-c
before_install:
- pod repo update
install:
- cd iOS/Sample
- pod install
- cd ../../
script:
- cd iOS/Sample
- xcodebuild -showsdks
- xcodebuild clean build -workspace Sample.xcworkspace -scheme Sample -sdk iphonesimulator11.4
- language: android
os: linux
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-27
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
cache:
directories:
- $HOME/.gradle/wrapper
- $HOME/.gradle/caches
- android/third-party/external
before_install:
- yes | sdkmanager "platforms;android-27"
- echo "y" | sdkmanager "cmake;3.6.4111459"
- wget -q https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip
- mkdir -p temp-android-ndk
- mv ./android-ndk-r17b-linux-x86_64.zip temp-android-ndk
- cd temp-android-ndk
- unzip -q android-ndk-r17b-linux-x86_64.zip
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r17b
- export PATH=${PATH}:${ANDROID_NDK_HOME}
- cd ../
script:
- ./gradlew :sample:build