File: .gitlab-ci.yml

package info (click to toggle)
enigmail 2:2.0.12+ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,608 kB
  • sloc: python: 6,877; sh: 3,771; makefile: 817; perl: 220; ansic: 125; xml: 34
file content (56 lines) | stat: -rw-r--r-- 2,189 bytes parent folder | download | duplicates (2)
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
51
52
53
54
55
56
image: node:10-stretch

build:
  script:
    - apt update -y -qq
    - apt install zip -y -qq
    - ./configure
    - make

lint:
  before_script:
    - npm install -g eslint
  script:
    - ./configure
    - make eslint

check:
  script:
    - ./configure
    - make check

test:
  before_script:
    - export TBPROFILE="$(pwd)/tb-test-profile"
    - apt update -y -qq
    - apt install thunderbird gnupg zip unzip curl xvfb libgtk-3-0 -y -qq
    - mkdir -p $TBPROFILE/extensions tmp jsunit
    - printf '%s/build/dist/' "$(pwd)" > "$TBPROFILE/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}"
    - printf 'user_pref("extensions.autoDisableScopes", 14);\n' > "$TBPROFILE/prefs.js"
    - printf 'user_pref("browser.dom.window.dump.enabled", true);\n' >> "$TBPROFILE/prefs.js"
    - printf 'user_pref("extensions.update.enabled", false);\n' >> "$TBPROFILE/prefs.js"
    - printf 'user_pref("extensions.update.autoUpdateDefault", false);\n' >> "$TBPROFILE/prefs.js"
    - printf 'user_pref("extensions.blocklist.enabled", false);\n' >> "$TBPROFILE/prefs.js"
    - printf 'user_pref("app.update.enabled", false);\n' >> "$TBPROFILE/prefs.js"
    - printf 'user_pref("extensions.enigmail.logDirectory", "%s");\n' $(pwd)/tmp >> "$TBPROFILE/prefs.js"
    - curl -s -o "$TBPROFILE/extensions/jsunit@enigmail.net.xpi" https://www.enigmail.net/jsunit/jsunit-0.1.6.xpi
    - export TBDOWNLOAD=https://archive.mozilla.org/pub/thunderbird/releases/60.0/linux-x86_64/en-US/thunderbird-60.0.tar.bz2
    - curl -s -o thunderbird.tar.bz2 $TBDOWNLOAD
    - tar -xjvf thunderbird.tar.bz2
    - thunderbird/thunderbird --version
  script:
    - export TBPROFILE="$(pwd)/tb-test-profile"
    - export TMPDIR="$(pwd)/tmp"
    - export XAUTHORITY="$(pwd)/tmp/.Xauthority"
    - export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
    - ./configure --enable-tests --with-tb-path=`printf '%s/thunderbird/thunderbird' "$(pwd)"` --with-tb-args="--headless --profile $TBPROFILE"
    - make dirs xpi
    - cat config/autoconf.mk
    - ls $TBPROFILE
    - cat $TBPROFILE/prefs.js
    - USER=root xvfb-run -a -f "$XAUTHORITY" $(which make) unit
  artifacts:
    paths:
      - config
      - tmp
      - tb-test-profile