Summary: Now that we have a node test in place, let's run this. Reviewed By: danielbuechele Differential Revision: D10217534 fbshipit-source-id: cf3debaf15b80d75234b67e4a78f6343c0fce50a
114 lines
3.0 KiB
YAML
114 lines
3.0 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 test
|
|
- yarn build --mac --version=$TRAVIS_BUILD_NUMBER
|
|
|
|
- language: objective-c
|
|
|
|
before_install:
|
|
- rm -rf iOS/Sample/Pods
|
|
- rm -f iOS/Sample/Podfile.lock
|
|
- rm -f iOS/SampleSwift/Podfile.lock
|
|
- pod repo update --silent
|
|
|
|
install:
|
|
- cd iOS/Sample
|
|
- rm -f Podfile.lock
|
|
- pod install --silent
|
|
- cd ../../
|
|
|
|
script:
|
|
- cd iOS/Sample
|
|
- IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
|
|
- xcodebuild clean build -workspace Sample.xcworkspace -scheme Sample -sdk $IPHONESIMULATOR -quiet
|
|
- language: objective-c
|
|
|
|
before_install:
|
|
- rm -rf iOS/SampleSwift/Pods
|
|
- rm -f iOS/SampleSwift/Podfile.lock
|
|
- pod repo update --silent
|
|
|
|
install:
|
|
- cd iOS/SampleSwift
|
|
- rm -f Podfile.lock
|
|
- pod install --silent
|
|
- cd ../../
|
|
script:
|
|
- cd iOS/SampleSwift
|
|
- IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$")
|
|
- xcodebuild clean build -workspace SampleSwift.xcworkspace -scheme SampleSwift -sdk $IPHONESIMULATOR -quiet
|
|
- 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:assembleDebug
|
|
- ./gradlew :android:testDebugUnitTest
|