.gitlab-ci.yml 778 Bytes
Newer Older
1
2
3
4
image: stretch_website

before_script:
  - export LANG=en_US.UTF-8
5
  - echo "deb http://security.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
6
  - echo "deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
7
8
  - sort /etc/apt/sources.list | uniq > sources.list.new
  - mv sources.list.new /etc/apt/sources.list
9
  - apt-get update
10
  - apt-get install -y dpkg-dev quilt devscripts
Robin Sonnabend's avatar
Robin Sonnabend committed
11
  - python3 -m venv venv
12
  - source venv/bin/activate
Robin Sonnabend's avatar
Robin Sonnabend committed
13
  - pip install wheel
14
  - pip install -r requirements.txt
Robin Sonnabend's avatar
Robin Sonnabend committed
15
16
17
  - mkdir -p ~/.ssh
  - echo $DEPLOY_KEY | base64 --decode > ~/.ssh/id_ed25519
  - chmod go-rw ~/.ssh/id_ed25519
18
19

stages:
20
  - build
21

22
23
build:
  stage: build
24
  script: scripts/build.py