enso/azure-pipelines.yml

132 lines
4.1 KiB
YAML
Raw Normal View History

2019-07-11 13:37:57 +03:00
# https://aka.ms/yaml
trigger:
branches:
include: [ "*" ]
paths:
exclude:
- .github/*
- doc/*
- .gitignore
- .scalafmt.conf
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENSE
- README.md
pr: none
2019-08-26 14:03:01 +03:00
variables:
graalVersion: 19.2.0
2019-09-05 19:01:51 +03:00
historicMacOSSbtFormula: https://raw.githubusercontent.com/Homebrew/homebrew-core/5311047af872538de3bd9fa10d78eda3185a7559/Formula/sbt.rb
2019-08-26 14:03:01 +03:00
2019-07-11 13:37:57 +03:00
jobs:
- job: Linux
2019-09-12 17:47:25 +03:00
timeoutInMinutes: 90
2019-07-11 13:37:57 +03:00
pool:
vmImage: 'Ubuntu-16.04'
container:
2019-08-26 14:03:01 +03:00
image: oracle/graalvm-ce:$(graalVersion)
2019-07-11 13:37:57 +03:00
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
steps:
- script: /tmp/docker exec -t -u 0 ci-container sh -c "yum install -y sudo"
displayName: Setup sudo
- script: |
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo
sudo yum install -y sbt
displayName: "Install sbt"
- script: |
sbt -no-colors test
2019-07-11 13:37:57 +03:00
displayName: sbt test
continueOnError: true
- script: |
2019-09-12 17:47:25 +03:00
sbt -no-colors syntax/bench
displayName: sbt bench parser
continueOnError: true
- script: |
sbt -no-colors interpreter/bench
displayName: sbt bench interpreter
2019-07-11 13:37:57 +03:00
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
- script: |
echo "##vso[task.complete result=Failed;]DONE"
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
displayName: "Fail if there were issues"
2019-07-11 13:37:57 +03:00
- job: macOS
2019-09-12 17:47:25 +03:00
timeoutInMinutes: 90
2019-07-11 13:37:57 +03:00
pool:
vmImage: macOS-10.13
steps:
- script: |
2019-08-26 14:03:01 +03:00
curl -fSL -o graal.tar.gz https://github.com/oracle/graal/releases/download/vm-$(graalVersion)/graalvm-ce-darwin-amd64-$(graalVersion).tar.gz
tar -x -z -C ~ -f graal.tar.gz
2019-08-26 14:03:01 +03:00
ls ~/graalvm-ce-$(graalVersion)
sudo mv ~/graalvm-ce-$(graalVersion) /Library/Java/JavaVirtualMachines
echo "##vso[task.setvariable variable=JAVA_HOME]/Library/Java/JavaVirtualMachines/graalvm-ce-$(graalVersion)/Contents/Home"
echo "##vso[task.setvariable variable=PATH]/Library/Java/JavaVirtualMachines/graalvm-ce-$(graalVersion)/Contents/Home/bin:$PATH"
displayName: Install GraalVM
- script: |
brew update
2019-09-05 19:01:51 +03:00
brew install $(historicMacOSSbtFormula)
displayName: Install sbt
- script: |
sbt -no-colors test
displayName: sbt test
continueOnError: true
- script: |
2019-09-12 17:47:25 +03:00
sbt -no-colors syntax/bench
displayName: sbt bench parser
continueOnError: true
- script: |
sbt -no-colors interpreter/bench
displayName: sbt bench interpreter
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
- script: |
echo "##vso[task.complete result=Failed;]DONE"
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
displayName: "Fail if there were issues"
2019-07-11 13:37:57 +03:00
- job: Windows
2019-09-12 17:47:25 +03:00
timeoutInMinutes: 90
2019-07-11 13:37:57 +03:00
pool:
vmImage: windows-2019
steps:
- script: |
2019-08-26 14:03:01 +03:00
curl -fSL -o graal.zip https://github.com/oracle/graal/releases/download/vm-$(graalVersion)/graalvm-ce-windows-amd64-$(graalVersion).zip
2019-07-11 13:37:57 +03:00
7z x -y -oC:\ graal.zip
displayName: "Install GraalVM"
- script: |
choco install -y sbt
displayName: "Install sbt"
- script: |
call refreshenv
2019-08-26 14:03:01 +03:00
echo ##vso[task.setvariable variable=JAVA_HOME]C:\graalvm-ce-$(graalVersion)
echo ##vso[task.setvariable variable=PATH]C:\graalvm-ce-$(graalVersion)\bin;%PATH%
2019-07-11 13:37:57 +03:00
displayName: "Adjust environment variables"
- script: |
sbt test
continueOnError: true
displayName: "sbt test"
- script: |
2019-09-12 17:47:25 +03:00
sbt syntax/bench
displayName: sbt bench parser
continueOnError: true
- script: |
sbt interpreter/bench
displayName: sbt bench interpreter
2019-07-11 13:37:57 +03:00
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
- script: |
echo "##vso[task.complete result=Failed;]DONE"
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
displayName: "Fail if there were issues"