Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.drone.jsonnet - github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3e70599f03e96c6ae8017227d69d037b7320bf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# We are building GCC with make and Clang with ninja, the combinations are more
# or less arbitrarily chosen. We just want to check that both compilers and both
# CMake generators work. It's unlikely that a specific generator only breaks
# with a specific compiler.
#

local pipeline = import 'pipeline.libsonnet';

local translations_trigger = {
  cron: [ 'translations' ],
};

[
  # Build client and docs
  pipeline.build_and_test_client('gcc', 'g++', 'Release', 'Unix Makefiles'),
  pipeline.build_and_test_client('clang', 'clang++', 'Debug', 'Ninja'),
  pipeline.build_client_docs(),
  pipeline.notification(
    name='build',
    depends_on=[
      'gcc-release-make',
      'clang-debug-ninja',
      'build-docs',
    ]
  ),

 # Sync translations
  pipeline.update_translations(
    'client',
    'translations',
    read_image='rabits/qt:5.12-desktop',
    trigger=translations_trigger
  ),
  pipeline.update_translations(
    'nsis',
    'admin/win/nsi/l10n',
    write_image='python:2.7-stretch',
    trigger=translations_trigger,
    depends_on=['translations-client'], // needs to run after translations-client because drone-git-push does not rebase before pushing
  ),
  pipeline.notification(
    name='translations',
    trigger=translations_trigger,
    depends_on=[
      'translations-client',
      'translations-nsis'
    ],
  ),
]