config 5.57 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") %]'
4
git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-1-build1'
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.4.1
12
  firefox_version: '[% c("var/firefox_platform_version") %]esr'
13
  torbrowser_branch: 9.5
14
  branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/alpha'
15
  copyright_year: '[% exec("git show -s --format=%ci").remove("-.*") %]'
boklm's avatar
boklm committed
16
17
18
19
20
21
  deps:
    - build-essential
    - unzip
    - zip
    - autoconf2.13
    - yasm
22
23
24
    # 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
25
    - python
26
    - pkg-config
boklm's avatar
boklm committed
27
28
  container:
    use_container: 1
29
  # this should be updated when the list of gradle dependencies is changed
30
  gradle_dependencies_version: 6
31
32
  # used by projects/firefox-locale-bundle
  l10n-changesets.json: '[% exec("cat mobile/locales/l10n-changesets.json") %]'
boklm's avatar
boklm committed
33

34
35
36
37
38
39
40
41
42
43
44
45
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
46
targets:
47
48
  release:
    var:
49
      branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/official'
50

51
  nightly:
52
    git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-1'
53
54
    tag_gpg_id: 0
    var:
55
      branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/nightly'
56

57
58
59
60
61
  android:
    var:
      arch_deps:
        - openjdk-8-jdk

62
63
64
65
66
67
68
69
70
  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

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

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

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

106
107
108
109
  windows:
    var:
      arch_deps:
        - wine
110
      pre_pkginst: |
111
112
113
114
        [% IF c("var/windows-i686") -%]
          # We need this to install wine32
          dpkg --add-architecture i386
        [% END -%]
115
116
117
118
        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
119
        apt-get -y -t stretch-backports install wine[% IF c("var/windows-i686") %]32[% END %]
120
      compiler: mingw-w64-clang
121

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

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

boklm's avatar
boklm committed
130
input_files:
boklm's avatar
boklm committed
131
  - project: container-image
boklm's avatar
boklm committed
132
133
  - name: '[% c("var/compiler") %]'
    project: '[% c("var/compiler") %]'
134
  - filename: get-moz-build-date
boklm's avatar
boklm committed
135
136
137
138
  - filename: 'mozconfig-[% c("var/osname") %]'
    name: mozconfig
  - project: binutils
    name: binutils
139
    enable: '[% c("var/linux") || c("var/android") %]'
boklm's avatar
boklm committed
140
141
  - filename: fix-info-plist.py
    enable: '[% c("var/osx") %]'
142
143
  - filename: nsis-uninstall.patch
    enable: '[% c("var/windows") %]'
144
145
  - project: rust
    name: rust
146
147
148
149
150
151
152
153
154
155
  - project: cbindgen
    name: cbindgen
  - project: node
    name: node
  - project: nasm
    name: nasm
  - project: python
    name: python
  - project: clang
    name: clang
156
157
158
  - project: fxc2
    name: fxc2
    enable: '[% c("var/windows") %]'
159
160
161
  - name: mingw-w64
    project: mingw-w64
    enable: '[% c("var/windows") %]'
162
163
  - filename: abicheck.cc
    enable: '[% c("var/linux") %]'
164
165
  - filename: start-firefox
    enable: '[% c("var/linux") %]'
166
167
168
  - project: tor-launcher
    name: tor-launcher
    enable: '[% ! c("var/android") %]'
169
170
171
172
  - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
    name: gradle-dependencies
    exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
    enable: '[% c("var/android") %]'
173
174
175
176
177
178
  - project: tor-android-service
    name: tor-android-service
    enable: '[% c("var/android") %]'
  - project: tor-onion-proxy-library
    name: topl
    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
187
188
189
  - filename: namecoin-torbutton.patch
    enable: '[% c("var/namecoin") %]'
    # TorButton patch authored by Arthur Edelstein, from https://github.com/arthuredelstein/torbutton/ branch 2.1.10-namecoin
  - filename: namecoin-etld.patch
    enable: '[% c("var/namecoin") %]'