aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
blob: 2156a731ebbe7e9e22a2735c61e1b70c0afa80f7 (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
kind: pipeline
name: default

steps:
- name: alpine
  image: alpine:3.13.7
  commands:
    - export SHELL=/bin/bash # hack custom shell
    - apk update
    - apk add musl-locales openjdk11 py3-pip make py3-virtualenv
    - export LANG=es_ES.UTF-8 LANGUAGE=es_ES
    - virtualenv -p python3 venv
    - source venv/bin/activate
    - pip install -r requirements.txt
    - (cd libretube-theme/ && make compile)
    - cp -v Makefile.example Makefile
    - make validate

- name: debian
  image: debian:bullseye
  commands:
    - export SHELL=/bin/bash # hack custom shell
    - apt-get update -y
    - apt-get install -y locales openjdk-11-jre python3-pip
    - sed -e 's|^# es_ES.UTF-8 UTF-8|es_ES.UTF-8 UTF-8|g' -i /etc/locale.gen
    - sed -e 's|^# en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|g' -i /etc/locale.gen
    - sed -e 's|^# eo UTF-8|eo UTF-8|g' -i /etc/locale.gen
    - sed -e 's|^# fr_FR.UTF-8 UTF-8|fr_FR.UTF-8 UTF-8|g' -i /etc/locale.gen
    - dpkg-reconfigure --frontend=noninteractive locales
    - export LANG=es_ES.UTF-8 LANGUAGE=es_ES
    - virtualenv -p python3 venv
    - source venv/bin/activate
    - pip install -r requirements.txt
    - (cd libretube-theme/ && make compile)
    - cp -v Makefile.example Makefile
    - make validate