.gitlab-ci.yml 1.23 KB
Newer Older
1
2
3
image: ubuntu:latest

stages:
4
  - build
5

6
build:
7
8
9
10
11
  stage: build
  only:
    - tags
    - triggers
    - schedules
12
    - web
13
14
  script:
    - apt update
15
    - apt install -y apt-transport-https curl gnupg git rpm make jq sed binutils wine-stable nsis bsdtar
16
    - curl -sL https://deb.nodesource.com/setup_13.x | bash -
17
    - apt install -y nodejs
18
19
20
21
22
23
24
    - sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
    - sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_unstable.list > /etc/apt/sources.list.d/dart_unstable.list'
    - apt update
    - apt install -y dart
    - export PATH="$PATH:/usr/lib/dart/bin"
    - pub global activate webdev
    - export PATH="$PATH":"$HOME/.pub-cache/bin"
Michael Koch's avatar
Michael Koch committed
25
26
    - cp $MAKEMK includes/make.mk
    - cp $CONFIGJS includes/config.js
Michael Koch's avatar
Michael Koch committed
27
    - mkdir -p $HOME/.ssh
Michael Koch's avatar
Michael Koch committed
28
29
30
    - cp $IDRSA $HOME/.ssh/id_rsa
    - cp $IDRSAPUB $HOME/.ssh/id_rsa.pub
    - cp $KNOWNHOSTS $HOME/.ssh/known_hosts
31
    - git submodule init
Michael Koch's avatar
Michael Koch committed
32
    - git submodule update --force
Michael Koch's avatar
Michael Koch committed
33
    - cp $MAKEMKNG src/make.mk
Michael Koch's avatar
Michael Koch committed
34
    - npm install
35
    - make build-kiosk
Michael Koch's avatar
Michael Koch committed
36
37
38
    - make build-directprint
    - make build-linux
    - make build-win
39
40
  artifacts:
    paths:
Michael Koch's avatar
Michael Koch committed
41
42
    - dist/kiosk
    - dist/directprint
Michael Koch's avatar
Michael Koch committed
43
    - dist/public