mosesdecoder/azure-pipelines.yml

100 lines
2.1 KiB
YAML
Raw Normal View History

# 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:
2020-09-03 10:25:22 +03:00
#vmImage: 'ubuntu-latest'
2020-09-03 10:34:53 +03:00
vmImage: 'ubuntu-16.04'
steps:
- script: |
2020-09-03 10:25:22 +03:00
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 \
2020-09-03 10:25:22 +03:00
libbz2-dev \
liblzma-dev \
python-dev \
graphviz \
imagemagick \
make \
cmake \
2020-09-03 10:34:53 +03:00
libgoogle-perftools-dev \
2020-09-03 10:25:22 +03:00
autoconf \
doxygen
displayName: 'Install Ubuntu packages'
2020-09-30 20:08:27 +03:00
- 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'
2020-09-30 20:08:27 +03:00
- 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'
2020-09-03 10:25:22 +03:00
- script: |
./bjam \
2020-09-30 20:08:27 +03:00
--with-cmph=$PWD/cmph-2.0.2 \
--with-xmlrpc-c=$PWD/xmlrpc-c-1.51.06 \
2020-09-03 10:34:53 +03:00
-j2
2020-09-30 20:08:27 +03:00
displayName: 'Build Moses'
# - script: |
# ./bjam \
# -j2
# displayName: 'Build Moses'
# - task: ComponentGovernanceComponentDetection@0
# inputs:
# scanType: 'Register'
# verbosity: 'Verbose'
# alertWarningLevel: 'High'