mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +00:00
Changing back and adding the 'pull: always' setting
This commit is contained in:
parent
64fc0a9408
commit
25e044f13f
@ -1,5 +1,4 @@
|
|||||||
local docker_base = 'registry.oxen.rocks/lokinet-ci-';
|
local docker_base = 'registry.oxen.rocks/lokinet-ci-';
|
||||||
local default_deps = [];
|
|
||||||
|
|
||||||
// Log a bunch of version information to make it easier for debugging
|
// Log a bunch of version information to make it easier for debugging
|
||||||
local version_info = {
|
local version_info = {
|
||||||
@ -19,60 +18,6 @@ local clone_submodules = {
|
|||||||
// cmake options for static deps mirror
|
// cmake options for static deps mirror
|
||||||
local ci_dep_mirror(want_mirror) = (if want_mirror then ' -DLOCAL_MIRROR=https://oxen.rocks/deps ' else '');
|
local ci_dep_mirror(want_mirror) = (if want_mirror then ' -DLOCAL_MIRROR=https://oxen.rocks/deps ' else '');
|
||||||
|
|
||||||
local debian_pipeline(name,
|
|
||||||
image,
|
|
||||||
arch='amd64',
|
|
||||||
deps=default_deps,
|
|
||||||
oxen_repo=false,
|
|
||||||
kitware_repo=''/* ubuntu codename, if wanted */,
|
|
||||||
allow_fail=false,
|
|
||||||
build=['echo "Error: drone build argument not set"', 'exit 1'])
|
|
||||||
= {
|
|
||||||
kind: 'pipeline',
|
|
||||||
type: 'docker',
|
|
||||||
name: name,
|
|
||||||
platform: { arch: arch },
|
|
||||||
steps: [
|
|
||||||
clone_submodules,
|
|
||||||
{
|
|
||||||
name: 'build',
|
|
||||||
image: image,
|
|
||||||
pull: 'always',
|
|
||||||
[if allow_fail then 'failure']: 'ignore',
|
|
||||||
environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },
|
|
||||||
commands: [
|
|
||||||
'./gradlew assemblePlayDebug',
|
|
||||||
'./Scripts/drone-static-upload.sh',
|
|
||||||
] + build,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
local debian_build(name,
|
|
||||||
image,
|
|
||||||
arch='amd64',
|
|
||||||
deps=default_deps,
|
|
||||||
build_type='Release',
|
|
||||||
lto=false,
|
|
||||||
werror=true,
|
|
||||||
cmake_extra='',
|
|
||||||
jobs=6,
|
|
||||||
tests=true,
|
|
||||||
oxen_repo=false,
|
|
||||||
kitware_repo=''/* ubuntu codename, if wanted */,
|
|
||||||
allow_fail=false)
|
|
||||||
= debian_pipeline(
|
|
||||||
name,
|
|
||||||
image,
|
|
||||||
arch=arch,
|
|
||||||
deps=deps,
|
|
||||||
oxen_repo=oxen_repo,
|
|
||||||
kitware_repo=kitware_repo,
|
|
||||||
allow_fail=allow_fail,
|
|
||||||
build=[]
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
[
|
[
|
||||||
// Unit tests (PRs only)
|
// Unit tests (PRs only)
|
||||||
{
|
{
|
||||||
@ -86,6 +31,7 @@ local debian_build(name,
|
|||||||
clone_submodules,
|
clone_submodules,
|
||||||
{
|
{
|
||||||
name: 'Run Unit Tests',
|
name: 'Run Unit Tests',
|
||||||
|
pull: always
|
||||||
image: docker_base + 'android',
|
image: docker_base + 'android',
|
||||||
commands: [
|
commands: [
|
||||||
'./gradlew testPlayDebugUnitTestCoverageReport'
|
'./gradlew testPlayDebugUnitTestCoverageReport'
|
||||||
@ -103,6 +49,7 @@ local debian_build(name,
|
|||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'Poll for build artifact existence',
|
name: 'Poll for build artifact existence',
|
||||||
|
pull: always
|
||||||
image: docker_base + 'android',
|
image: docker_base + 'android',
|
||||||
commands: [
|
commands: [
|
||||||
'./Scripts/drone-upload-exists.sh'
|
'./Scripts/drone-upload-exists.sh'
|
||||||
@ -118,13 +65,19 @@ local debian_build(name,
|
|||||||
platform: { arch: 'amd64' },
|
platform: { arch: 'amd64' },
|
||||||
trigger: { event: { exclude: [ 'pull_request' ] } },
|
trigger: { event: { exclude: [ 'pull_request' ] } },
|
||||||
steps: [
|
steps: [
|
||||||
debian_pipeline(
|
version_info,
|
||||||
'Build',
|
clone_submodules,
|
||||||
docker_base + 'android',
|
{
|
||||||
build=[]
|
name: 'Build',
|
||||||
),
|
pull: always
|
||||||
|
image: docker_base + 'android',
|
||||||
|
commands: [
|
||||||
|
'./gradlew assemblePlayDebug'
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Upload artifacts',
|
name: 'Upload artifacts',
|
||||||
|
pull: always
|
||||||
image: docker_base + 'android',
|
image: docker_base + 'android',
|
||||||
environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },
|
environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },
|
||||||
commands: [
|
commands: [
|
||||||
|
Loading…
Reference in New Issue
Block a user