2019-09-27 21:06:18 +00:00
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
- job: Linux
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
container:
|
|
|
|
image: 'ubuntu:18.04'
|
|
|
|
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
/tmp/docker exec -t -u 0 ci-container \
|
|
|
|
sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo"
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: Set up sudo
|
2019-09-27 21:06:18 +00:00
|
|
|
- checkout: self
|
|
|
|
submodules: true
|
|
|
|
- script: |
|
|
|
|
sudo apt-get install -y \
|
|
|
|
cmake libgmp-dev libmpfr-dev libmpc-dev \
|
|
|
|
libboost-all-dev bison texinfo \
|
2019-09-28 23:35:10 +00:00
|
|
|
ruby flex curl
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: 'Install prerequisites'
|
2019-09-27 21:06:18 +00:00
|
|
|
- script: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2019-11-11 23:07:39 +00:00
|
|
|
../build-toolchain.bash
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: 'Build'
|
2019-09-28 22:22:44 +00:00
|
|
|
- script: |
|
|
|
|
cd build
|
2019-09-29 07:46:54 +00:00
|
|
|
curl -L -O https://github.com/autc04/executor/releases/download/v0.1.0/Executor2000-0.1.0-Linux.tar.bz2
|
2019-09-28 22:22:44 +00:00
|
|
|
tar xfvj Executor2000-0.1.0-Linux.tar.bz2 Executor2000-0.1.0-Linux/bin/executor-headless
|
|
|
|
echo "executor-path=`pwd`/Executor2000-0.1.0-Linux/bin/executor-headless" > ~/.LaunchAPPL.cfg
|
|
|
|
echo "emulator=executor" >> ~/.LaunchAPPL.cfg
|
2019-11-11 23:07:39 +00:00
|
|
|
ctest --no-compress-output -T test -E Carbon || true
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: Run Tests using Executor 2000
|
2019-09-28 22:22:44 +00:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'CTest'
|
|
|
|
testResultsFiles: build/Testing/**/*.xml
|
|
|
|
buildPlatform: 'x86_64-linux'
|
2019-09-27 21:06:18 +00:00
|
|
|
|
|
|
|
- job: macOS
|
|
|
|
pool:
|
|
|
|
vmImage: 'macOS-10.14'
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
submodules: true
|
|
|
|
- script: |
|
|
|
|
brew install boost cmake gmp mpfr libmpc bison
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: 'Brew prerequisites'
|
2019-09-27 21:06:18 +00:00
|
|
|
- script: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2019-11-11 23:07:39 +00:00
|
|
|
../build-toolchain.bash
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: Build
|
|
|
|
- script: |
|
|
|
|
cd build
|
|
|
|
curl -L -O https://github.com/autc04/executor/releases/download/v0.1.0/Executor2000-0.1.0-Darwin.tar.bz2
|
|
|
|
tar xfvj Executor2000-0.1.0-Darwin.tar.bz2 Executor2000-0.1.0-Darwin/bin/executor-headless
|
|
|
|
echo "executor-path=`pwd`/Executor2000-0.1.0-Darwin/bin/executor-headless" > ~/.LaunchAPPL.cfg
|
|
|
|
echo "emulator=executor" >> ~/.LaunchAPPL.cfg
|
2019-11-11 23:07:39 +00:00
|
|
|
ctest --no-compress-output -T test -E Carbon || true
|
2019-09-29 08:36:10 +00:00
|
|
|
displayName: Run Tests using Executor 2000
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'CTest'
|
|
|
|
testResultsFiles: build/Testing/**/*.xml
|
|
|
|
buildPlatform: 'x86_64-macos'
|