Welcome to mirror list, hosted at ThFree Co, Russian Federation.

azure-pipelines.yml - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fddd0faea1e935437ee9d67dfb4bd6414f86b636 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pool:
  #vmImage: 'ubuntu-latest'
  vmImage: 'ubuntu-16.04'

steps:

- script: |
    echo Printing some environment information
    echo HOME: $HOME
    echo
    echo UBUNTU VERSION: 
    cat /etc/lsb-release
    echo
    echo CPU INFO
    cat /proc/cpuinfo
    echo 
    echo MEM INFO
    cat /proc/meminfo
    echo
    echo DISK INFO
    df -h
    echo 
    echo PWD: $PWD
    echo
    ls
  displayName: 'Printing some environment information'


## Installation commands for Ubuntu 
- script: |
    sudo apt-get install  \
      g++  \
      git  \
      subversion \
      automake \
      libtool \
      zlib1g-dev \
      libicu-dev \
      libboost-all-dev \
      libssl-dev \
      libbz2-dev \
      liblzma-dev \
      python-dev \
      graphviz \
      imagemagick \
      make \
      cmake \
      libgoogle-perftools-dev \
      autoconf \
      doxygen 
  displayName: 'Install Ubuntu packages'

- script: |   
    wget "https://sourceforge.net/projects/cmph/files/v2.0.2/cmph-2.0.2.tar.gz/download"
    mv download  cmph-2.0.2.tar.gz  
    tar xvzf cmph-2.0.2.tar.gz
    cd cmph-2.0.2
    ./configure --prefix=$PWD
    make
    make install
    cd ..
  displayName: 'Build and Install cmph'    

- script: |   
    wget "https://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/1.51.06/xmlrpc-c-1.51.06.tgz/download"
    mv download  xmlrpc-c-1.51.06.tgz
    tar xvzf xmlrpc-c-1.51.06.tgz
    cd xmlrpc-c-1.51.06
    ./configure --prefix=$PWD
    make
    make install
    sudo ldconfig
    cd ..
  displayName: 'Build and Install xmlrpc-c'    

- script: |   
    ./bjam \
      --with-cmph=$PWD/cmph-2.0.2 \
      --with-xmlrpc-c=$PWD/xmlrpc-c-1.51.06 \
      -j2
  displayName: 'Build Moses'    

# - script: |   
#     ./bjam \
#       -j2
#   displayName: 'Build Moses'  

# - task: ComponentGovernanceComponentDetection@0
#   inputs:
#     scanType: 'Register'
#     verbosity: 'Verbose'
#     alertWarningLevel: 'High'