.gitlab-ci.yml 1.6 KB
Newer Older
Pierre del Perugia's avatar
Pierre del Perugia committed
1 2
image: ubuntu:18.04

Pierre del Perugia's avatar
Pierre del Perugia committed
3 4 5 6 7 8 9 10
services:
    - mariadb:10.1

variables:
    # Configure mysql service (https://hub.docker.com/_/mariadb/)
    MYSQL_DATABASE:      masnae
    MYSQL_ROOT_PASSWORD: En8YEdZy

Pierre del Perugia's avatar
Pierre del Perugia committed
11 12
before_script:
    - apt-get update -qq
Pierre del Perugia's avatar
Pierre del Perugia committed
13

Pierre del Perugia's avatar
Pierre del Perugia committed
14 15 16
    # Compiler & libraries
    - apt-get install -y -qq cmake make g++
    - apt-get install -y -qq libbfd-dev libcurl4-openssl-dev libmariadb-dev libmozjs-52-dev libssl-dev rapidjson-dev libargon2-0-dev libzxcvbn-dev libxml2-dev
Pierre del Perugia's avatar
Pierre del Perugia committed
17

Pierre del Perugia's avatar
Pierre del Perugia committed
18
    # Externals
Pierre del Perugia's avatar
Pierre del Perugia committed
19
    - apt-get install -y -qq git
Pierre del Perugia's avatar
Pierre del Perugia committed
20
    - mkdir -p externals usr_local usr_local/include usr_local/lib
Pierre del Perugia's avatar
Pierre del Perugia committed
21

Pierre del Perugia's avatar
Pierre del Perugia committed
22
    # Database
Pierre del Perugia's avatar
Pierre del Perugia committed
23
    - apt-get install -y -qq mariadb-client
Pierre del Perugia's avatar
Pierre del Perugia committed
24

Pierre del Perugia's avatar
Pierre del Perugia committed
25
mayatsu:
Pierre del Perugia's avatar
Pierre del Perugia committed
26 27
    script:

Pierre del Perugia's avatar
Pierre del Perugia committed
28
    # adawat
Pierre del Perugia's avatar
Pierre del Perugia committed
29 30 31 32
        - cd externals
        - git clone https://gitlab.com/delperugia/adawat.git
        - cd adawat
        - make install
Pierre del Perugia's avatar
Pierre del Perugia committed
33
        - ldconfig
Pierre del Perugia's avatar
Pierre del Perugia committed
34 35
        - cd ../..

Pierre del Perugia's avatar
Pierre del Perugia committed
36
    # fastcgipp
Pierre del Perugia's avatar
Pierre del Perugia committed
37 38 39 40 41 42
        - cd externals
        - git clone https://github.com/delperugia/fastcgipp.git
        - mkdir -p fastcgipp.build
        - cd fastcgipp.build
        - cmake -DCMAKE_BUILD_TYPE=RELEASE ../fastcgipp
        - make install
Pierre del Perugia's avatar
Pierre del Perugia committed
43
        - ldconfig
Pierre del Perugia's avatar
Pierre del Perugia committed
44 45
        - cd ../..

Pierre del Perugia's avatar
Pierre del Perugia committed
46
    # masnae
Pierre del Perugia's avatar
Pierre del Perugia committed
47 48
        - mariadb --host=mariadb -u root -pEn8YEdZy < masnae/masnae_validate_db.sql
        - make -C masnae gitlab
Pierre del Perugia's avatar
Pierre del Perugia committed
49

Pierre del Perugia's avatar
Pierre del Perugia committed
50
    # urania
51
        - mariadb --host=mariadb -u root -pEn8YEdZy < urania/urania_create_db.sql
Pierre del Perugia's avatar
Pierre del Perugia committed
52 53
        - mariadb --host=mariadb -u root -pEn8YEdZy < urania/urania_validate_db.sql
        - make -C urania gitlab
Pierre del Perugia's avatar
Pierre del Perugia committed
54

Pierre del Perugia's avatar
Pierre del Perugia committed
55
    # thoe
Pierre del Perugia's avatar
Pierre del Perugia committed
56 57 58 59 60
        - make -C thoe gitlab

    # admete
        - mariadb --host=mariadb -u root -pEn8YEdZy < admete/admete_create_db.sql
        - make -C admete gitlab