Skip to content

Commit

Permalink
Add travis configuration
Browse files Browse the repository at this point in the history
Summary: As title

Reviewed By: tianqibt

Differential Revision: D18746599

fbshipit-source-id: 2e2fd3047d12cc88b482fbd098474aa50d7dd2ff
  • Loading branch information
KylinChang authored and facebook-github-bot committed Dec 2, 2019
1 parent f057bdf commit 28ce7db
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: csharp
solution: Facebook.sln
os: osx
env:
global:
- ANDROID_HOME='/usr/local/share/android-sdk'
- JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
mono:
- 5.0.1
install:
- nuget restore Facebook.sln
- sh scripts/travis/install.sh
- sh scripts/setup.sh

stages:
- name: test
if: '! tag =~ /^sdk-version-([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/'
- name: release
if: tag =~ /^sdk-version-([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)\.([0-9]{1}|[1-9][0-9]+)($|[-+][0-9A-Za-z+.-]+$)/
6 changes: 5 additions & 1 deletion facebook-android-wrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ allprojects {
buildscript {
repositories {
mavenCentral()
google()
jcenter()
maven {
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.android.tools.build:gradle:3.1.2'
}
}

Expand All @@ -30,6 +32,8 @@ repositories {
}
} else {
mavenCentral()
google()
jcenter()
maven {
url "https://maven.google.com"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
2 changes: 1 addition & 1 deletion scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ downloadUnityJarResolverFromGithub() {

UNITY_PACKAGE_PATH="$PROJECT_ROOT/$UNITY_JAR_RESOLVER_PACKAGE"

$UNITY_PATH -quit -batchmode -logFile -projectPath="$PROJECT_ROOT/UnitySDK" \
$UNITY_PATH -quit -batchmode -logFile -nographics -projectPath="$PROJECT_ROOT/UnitySDK" \
-importPackage "$UNITY_PACKAGE_PATH" || die "Failed to import $UNITY_PACKAGE_PATH"
info "Cleaning up..."
rm "$UNITY_PACKAGE_PATH"
Expand Down

0 comments on commit 28ce7db

Please sign in to comment.