.gitlab-ci.yml 1011 Bytes
Newer Older
ci's avatar
ci committed
1
2
3
4
5
6
7
8
9
job:
  image: golang:1.12.7-stretch

  variables:
    GO111MODULE: "on"

  script:
    #Fetch master to be used in deploy condition to prevent deploying on old commits.
    - whoami && pwd
ci's avatar
ci committed
10
    - USER=$(whoami)
ci's avatar
ci committed
11
12
13
14
15
16
17
18
19
    - ./e2e/e2e.sh

  cache:
    key: "$CI_COMMIT_REF_SLUG"
    paths:
      - $HOME/.cache/go-build
      - $HOME/gopath/pkg/mod

  before_script:
ci's avatar
ci committed
20
21
    - whoami && pwd
    - USER=$(whoami)
ci's avatar
ci committed
22
    - apt update -q && apt install -qqy --no-install-recommends locales-all sudo youtube-dl ffmpeg tree curl
ci's avatar
ci committed
23
    - apt install -qqy --no-install-recommends python-pip python-dev libffi-dev libssl-dev gcc libc-dev make
ci's avatar
ci committed
24
25
26
27
28
29
    - curl -fsSL https://get.docker.com -o get-docker.sh
    - sudo sh get-docker.sh
    - sudo usermod -aG docker $USER
    - sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    - sudo chmod +x /usr/local/bin/docker-compose
    - sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose