forked from SilentCircle/silent-phone-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ronald Krueger
committed
Oct 16, 2017
1 parent
e8c37ce
commit a69c2ed
Showing
319 changed files
with
19,141 additions
and
9,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,64 @@ | ||
image: hub.silentcircle.org/eng/sc-android-build | ||
|
||
stages: | ||
- build | ||
- test | ||
- deploy | ||
|
||
dev_build_job: | ||
|
||
|
||
# Common build settings | ||
.common_build: &ref_common_build | ||
variables: | ||
CI_DEBUG_TRACE: "false" | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CI_DEBUG_TRACE: "true" | ||
stage: build | ||
except: # Except any tags of format vN.M+ or VN.M-rcX | ||
- /^v\d+\.\d+(\.\d+)*(-rc\d+)?$/ | ||
DOCKER_IMAGE_VER: "v0.6" | ||
DOCKER_TAG: "hub.silentcircle.org/eng/sc-android-build:${DOCKER_IMAGE_VER}" | ||
# All these are required by the build script | ||
BUILD_NUMBER_PREFIX: "${CI_COMMIT_REF_SLUG}" | ||
WORKSPACE: "${CI_PROJECT_DIR}" | ||
GRADLE_USER_HOME: "$WORKSPACE/.gradle" | ||
SRC_ROOT: "$WORKSPACE" | ||
JNI_ROOT: "${WORKSPACE}/silentphone2/support" | ||
BUILD_SCRIPT: "silentphone2/.build-release/android-build.sh" | ||
# We want all the files downloaded by Gradle to persist across builds | ||
# for the same branch or tag. | ||
cache: | ||
key: "${CI_COMMIT_REF_NAME}" | ||
paths: | ||
- "${GRADLE_USER_HOME}/caches" | ||
- "${GRADLE_USER_HOME}/wrapper" | ||
image: "${DOCKER_TAG}" | ||
tags: | ||
- docker-debian | ||
script: | ||
- make | ||
artifacts: | ||
name: "dev-${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" | ||
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_SLUG}" | ||
when: on_success | ||
expire_in: 8 weeks | ||
paths: | ||
- silentphone2/build/outputs | ||
allow_failure: false | ||
|
||
beta_build_job: | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CI_DEBUG_TRACE: "true" | ||
|
||
|
||
# Development build | ||
dev_build_job: | ||
stage: build | ||
only: | ||
- /^v\d+\.\d+(\.\d+)*-rc\d+$/ | ||
tags: | ||
- docker-debian | ||
except: # Except any tags of format vN.M+ or VN.M-rcX | ||
- /^v\d+\.\d+(\.\d+)*(-rc\d+)?$/ | ||
script: | ||
- make | ||
artifacts: | ||
name: "beta-${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" | ||
when: on_success | ||
expire_in: 8 weeks | ||
paths: | ||
- silentphone2/build/outputs | ||
allow_failure: false | ||
- bash -xv $BUILD_SCRIPT DEVELOP | ||
<<: *ref_common_build | ||
|
||
prod_build_job: | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CI_DEBUG_TRACE: "true" | ||
|
||
# Beta/RC build | ||
beta_build_job: | ||
stage: build | ||
only: | ||
- /^v\d+\.\d+(\.\d+)*$/ | ||
tags: | ||
- docker-debian | ||
- /^v\d+\.\d+(\.\d+)*-rc\d+$/ | ||
script: | ||
- make | ||
artifacts: | ||
name: "prod-${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}" | ||
when: on_success | ||
expire_in: 8 weeks | ||
paths: | ||
- silentphone2/build/outputs | ||
allow_failure: false | ||
- bash -xv $BUILD_SCRIPT RELEASE | ||
<<: *ref_common_build | ||
|
||
|
||
|
||
# We don't have a prod build job. Prod builds | ||
# are rc (beta) builds that have passed QA and | ||
# are deemed ready for release. They don't get rebuilt | ||
# because that's risky and unnecessary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon May 22 23:53:59 CDT 2017 | ||
#Fri Jul 21 02:32:27 PDT 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.