config 5.38 KB
Newer Older
boklm's avatar
boklm committed
1
2
3
# vim: filetype=yaml sw=2
version: '[% c("abbrev") %]'
filename: 'firefox-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
Georg Koppen's avatar
Georg Koppen committed
4
git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-2-build2'
5
tag_gpg_id: 1
boklm's avatar
boklm committed
6
git_url: https://git.torproject.org/tor-browser.git
7
git_submodule: 1
boklm's avatar
boklm committed
8
9
10
gpg_keyring: torbutton.gpg

var:
11
  firefox_platform_version: 68.1.0
12
  firefox_version: '[% c("var/firefox_platform_version") %]esr'
13
  torbrowser_branch: 9.0
boklm's avatar
boklm committed
14
  torbrowser_update_channel: alpha
15
  branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/alpha'
16
  copyright_year: '[% exec("git show -s --format=%ci").remove("-.*") %]'
boklm's avatar
boklm committed
17
18
19
20
21
22
  deps:
    - build-essential
    - unzip
    - zip
    - autoconf2.13
    - yasm
23
24
25
    # We are building our own version of Python 3.6, which is required
    # for the build. However mach still requires Python 2.7, so we
    # install this version using the package.
boklm's avatar
boklm committed
26
    - python
27
    - pkg-config
boklm's avatar
boklm committed
28
29
  container:
    use_container: 1
30
  # this should be updated when the list of gradle dependencies is changed
31
  gradle_dependencies_version: 6
32
33
  # used by projects/firefox-locale-bundle
  l10n-changesets.json: '[% exec("cat mobile/locales/l10n-changesets.json") %]'
boklm's avatar
boklm committed
34

35
36
37
38
39
40
41
42
43
44
45
46
steps:
  src-tarballs:
    filename: 'src-[% project %]-[% c("version") %].tar.xz'
    version: '[% c("git_hash") %]'
    input_files: []
    var:
      container:
        use_container: 0
    targets:
      nightly:
        version: '[% c("abbrev") %]'

boklm's avatar
boklm committed
47
targets:
48
49
50
  release:
    var:
      torbrowser_update_channel: release
51
      branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/official'
52

53
  nightly:
Georg Koppen's avatar
Georg Koppen committed
54
    git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-2'
55
56
57
    tag_gpg_id: 0
    var:
      torbrowser_update_channel: default
58
      branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/nightly'
59

60
  android:
61
62
63
64
    var:
      arch_deps:
        - openjdk-8-jdk

65
66
67
68
69
70
71
72
73
  linux:
    var:
      post_pkginst: |
        # Firefox ESR68 needs Yasm >= 1.2.0 which Debian Wheezy ships in backports.
        echo 'deb http://archive.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list
        export DEBIAN_FRONTEND=noninteractive
        apt-get update
        apt-get install -t wheezy-backports -y yasm

74
  linux-x86_64:
boklm's avatar
boklm committed
75
    var:
76
      martools_filename: mar-tools-linux64.zip
boklm's avatar
boklm committed
77
78
      arch_deps:
        - libgtk2.0-dev
79
        - libgtk-3-dev
boklm's avatar
boklm committed
80
81
82
83
84
        - libdbus-glib-1-dev
        - libxt-dev
        - hardening-wrapper
        # To pass configure since ESR 31.
        - libpulse-dev
85
86
        # To pass configure since ESR 52
        - libx11-xcb-dev
boklm's avatar
boklm committed
87
88
89
90

  linux-i686:
    var:
      martools_filename: mar-tools-linux32.zip
91
92
93
94
95
96
      sort_deps: 0
      arch_deps:
        - libgtk2.0-dev:i386
        - libgtk-3-dev:i386
        - libdbus-glib-1-dev:i386
        - libxt-dev:i386
97
        - hardening-wrapper
98
99
100
101
        # To pass configure since ESR 31.
        - libpulse-dev:i386
        # To pass configure since ESR 52
        - libx11-xcb-dev:i386
boklm's avatar
boklm committed
102
103
104
105
106
107
108

  osx-x86_64:
    var:
      martools_filename: mar-tools-mac64.zip
      arch_deps:
        - rsync

109
110
111
112
  windows:
    var:
      arch_deps:
        - wine
113
114
115
116
117
118
119
      pre_pkginst: |
        echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
      post_pkginst: |
        # We need to have at least 3.0.3 which Mozilla is using in the
        # mingw-w64/clang build process
        apt-get -y -t stretch-backports install wine
      compiler: mingw-w64-clang
120

boklm's avatar
boklm committed
121
122
123
124
  windows-i686:
    var:
      martools_filename: mar-tools-win32.zip

125
126
127
128
  windows-x86_64:
    var:
      martools_filename: mar-tools-win64.zip

boklm's avatar
boklm committed
129
input_files:
boklm's avatar
boklm committed
130
  - project: container-image
boklm's avatar
boklm committed
131
132
  - name: '[% c("var/compiler") %]'
    project: '[% c("var/compiler") %]'
133
  - filename: get-moz-build-date
boklm's avatar
boklm committed
134
135
136
137
  - filename: 'mozconfig-[% c("var/osname") %]'
    name: mozconfig
  - project: binutils
    name: binutils
138
    enable: '[% c("var/linux") || c("var/android") %]'
boklm's avatar
boklm committed
139
140
  - filename: fix-info-plist.py
    enable: '[% c("var/osx") %]'
141
142
  - filename: nsis-uninstall.patch
    enable: '[% c("var/windows") %]'
143
144
  - project: rust
    name: rust
145
146
147
148
149
150
151
152
153
154
  - project: cbindgen
    name: cbindgen
  - project: node
    name: node
  - project: nasm
    name: nasm
  - project: python
    name: python
  - project: clang
    name: clang
155
156
157
  - project: fxc2
    name: fxc2
    enable: '[% c("var/windows") %]'
158
159
  - filename: abicheck.cc
    enable: '[% c("var/linux") %]'
160
161
  - filename: start-firefox
    enable: '[% c("var/linux") %]'
162
163
164
  - project: tor-launcher
    name: tor-launcher
    enable: '[% ! c("var/android") %]'
165
166
167
168
  - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
    name: gradle-dependencies
    exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
    enable: '[% c("var/android") %]'
169
170
171
172
173
174
  - project: tor-android-service
    name: tor-android-service
    enable: '[% c("var/android") %]'
  - project: tor-onion-proxy-library
    name: topl
    enable: '[% c("var/android") %]'
175
176
177
  - filename: android-packages.patch
    enable: '[% c("var/android") %]'
  - filename: android-remove-emulator.patch
178
    enable: '[% c("var/android") %]'
179
180
181
  - project: firefox-locale-bundle
    name: firefox-locale-bundle
    enable: '[% c("var/android") %]'
182
183
184
  - project: tba-translation
    name: tba-translation
    enable: '[% c("var/android") %]'
185
186
  - filename: 1527534.patch
    enable: '[% c("var/android") %]'