summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 7edecad9cf363c3e49ff65d37d058706c876cb46 (plain) (blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
stages:
  - test
  - build

pyflakes3:
  stage: test
  script:
  - apt-get update
  - apt-get -y -qq install python3 pyflakes3
  - pyflakes3 *.py
  image: ubuntu:18.04
  #allow_failure: true

.compile:
    stage: build
    script:
    - mkdir manaplus
    - mv Config manaplus
    - mkdir -p manaplus/Local/updates/updates.tmw2.org
    - mkdir manaplus/Local/temp
    - mkdir manaplus/Local/logs
    - touch manaplus/Local/manaplus.log
    - touch manaplus/Local/manaplustest.log
    - echo "Fetching clients..."
    - wget -t 0 -c "https://updates.tmw2.org/mana/linux/ManaPlus-x86_64.AppImage" -O manaplus/ManaVerse.AppImage
    - wget -t 0 -c "https://updates.tmw2.org/mana/linux/Mana-x86_64.AppImage" -O manaplus/Mana.AppImage
    - chmod +x manaplus/*.AppImage
    - wget -t 0 -c "https://updates.tmw2.org/mana/windows/manaverse.zip" -O manaplus/manaverse.zip
    # TODO: Unzip manaverse.zip
    #####################################################
    - echo "Fetching updates for - Moubootaur Legends"
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/ml/local
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/ml/fix
    - wget "https://updates.tmw2.org/ml/TMW2.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/TMW2.zip
    - wget "https://updates.tmw2.org/ml/TMW2-2b90b80.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/TMW2-2b90b80.zip
    - wget "https://updates.tmw2.org/ml/music.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/music.zip
    - wget "https://updates.tmw2.org/ml/musicv2.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/musicv2.zip
    - wget "https://updates.tmw2.org/ml/musicv3.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/musicv3.zip
    - wget "https://updates.tmw2.org/ml/musicv4.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/musicv4.zip
    - wget "https://updates.tmw2.org/ml/Bugfix-TMW2.zip" -O manaplus/Local/updates/updates.tmw2.org/ml/Bugfix-TMW2.zip
    #####################################################
    - echo "Fetching updates for - TMW Classic"
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/legacy/local
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/legacy/fix
    - wget "https://updates.tmw2.org/legacy/TMW.zip" -O manaplus/Local/updates/updates.tmw2.org/legacy/TMW.zip
    - wget "https://updates.tmw2.org/legacy/TMW-music.zip" -O manaplus/Local/updates/updates.tmw2.org/legacy/TMW-music.zip
    - wget "https://updates.tmw2.org/legacy/TMW-mods.zip" -O manaplus/Local/updates/updates.tmw2.org/legacy/TMW-mods.zip
    #####################################################
    - echo "Fetching updates for - TMW Crossroads"
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/CR/local
    - mkdir -p manaplus/Local/updates/updates.tmw2.org/CR/fix
    - wget "https://updates.tmw2.org/CR/TMW2.zip" -O manaplus/Local/updates/updates.tmw2.org/CR/TMW2.zip
    #####################################################
    # TODO: rEvolt updates, Mana updates
    # TODO: Zip everything and upload it as Minimal.zip
    image: ubuntu:18.04
    artifacts:
    paths:
        - "."
    expire_in: 2 weeks
    only:
        - master

sast:
  stage: test
include:
- template: Security/SAST.gitlab-ci.yml