Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup CI test build #14

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 71 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.deps
# Linux build intermediate files.
.deps/
.dirstamp
.libs
.libs/
*~
*.o
*.lo
Expand All @@ -20,13 +21,11 @@ m4/
/missing
/config.status
/ltmain.sh
/config.log
/libtool
/configure
/intltool-merge.in
/install-sh
/configure.scan
/autoscan.log
/nbproject/private
/po/Makefile.in.in
/po/stamp-it
Expand All @@ -35,3 +34,71 @@ m4/
/src/config.h
/src/config.h.in
/build-aux/

# NetBeans local configuration files.
/nbproject/

# Log files.
*.log

# Visual Studio cache & intermadiate directory.
.vs/

# Visual studio local project files.
*.suo
*.user

# Visual C++ cache files.
ipch/
obj/
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
package-lock.json

# Visual studio intermediate build files.
msvc/**/Debug
msvc/**/Release

# Visual Studio Code cache & intermadiate directory.
.vscode/

# macOS intemediate and metadata files.
.DS_Store
*.swp
*.lock
profile

# Xcode temp files.
*~.nib

# Xcode private settings.
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3

# Xcode default settings.
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3

# Xcode personal settings.
xcuserdata
!xcshareddata

# Gradle cache files.
.gradle/
.externalNativeBuild/

# Android studio cache/settings files.
.idea/
*.iml

# Gradle local settings.
local.properties
81 changes: 81 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
jobs:
- job: build_linux
pool:
vmImage: 'ubuntu-18.04'
# vmImage: 'ubuntu-16.04'
# container: 'buildpack-deps:bionic'
steps:
- bash: 'autoreconf --install'
- bash: './configure CPPFLAGS=-DNDEBUG'
- bash: 'make'
- job: build_windows_x86_static
pool:
vmImage: 'windows-2019'
steps:
- task: MSBuild@1
inputs:
solution: 'msvc/teobase.sln'
platform: x86
configuration: Release
msbuildArguments: -target:teobase-static
- job: build_windows_x86_64_static
pool:
vmImage: 'windows-2019'
steps:
- task: MSBuild@1
inputs:
solution: 'msvc/teobase.sln'
platform: x64
configuration: Release
msbuildArguments: -target:teobase-static
- job: build_windows_x86_dynamic
pool:
vmImage: 'windows-2019'
steps:
- task: MSBuild@1
inputs:
solution: 'msvc/teobase.sln'
platform: x86
configuration: Release
msbuildArguments: -target:teobase-dynamic
- job: build_windows_x86_64_dynamic
pool:
vmImage: 'windows-2019'
steps:
- task: MSBuild@1
inputs:
solution: 'msvc/teobase.sln'
platform: x64
configuration: Release
msbuildArguments: -target:teobase-dynamic
- job: build_android
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: Gradle@2
inputs:
workingDirectory: 'gradle'
gradleWrapperFile: 'gradle/gradlew'
tasks: 'assembleRelease'
- job: build_macos
pool:
vmImage: 'macOS-10.14'
steps:
- task: Xcode@5
inputs:
actions: 'build'
configuration: 'Release'
sdk: 'macosx'
xcWorkspacePath: 'xcode/teobase-macos-bundle.xcodeproj/project.xcworkspace'
scheme: 'teobase'
- job: build_ios
pool:
vmImage: 'macOS-10.14'
steps:
- task: Xcode@5
inputs:
actions: 'build'
configuration: 'Release'
sdk: 'iphoneos'
xcWorkspacePath: 'xcode/teobase-ios.xcodeproj/project.xcworkspace'
scheme: 'teobase'
15 changes: 15 additions & 0 deletions gradle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
.idea
26 changes: 26 additions & 0 deletions gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
21 changes: 21 additions & 0 deletions gradle/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
Binary file added gradle/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sun Nov 17 17:36:23 MSK 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Loading