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:
|
2019-10-17 12:07:47 +03:00
|
|
|
graalVersion: 19.2.1 # Please ensure this is in sync with the graalAPIVersion in build.sbt
|
|
|
|
sbtVersion: 1.3.3 # Please ensure this is in sync with project/build.properties
|
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"
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Setup Sudo
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-09-25 19:49:43 +03:00
|
|
|
curl -fSL -o sbt.tgz https://piccolo.link/sbt-$(sbtVersion).tgz
|
|
|
|
tar -x -z -C ~ -f sbt.tgz
|
|
|
|
echo "##vso[task.setvariable variable=PATH]~/sbt/bin/:$PATH"
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Install SBT
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-07-11 18:30:14 +03:00
|
|
|
sbt -no-colors test
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Test All
|
2019-07-11 13:37:57 +03:00
|
|
|
continueOnError: true
|
|
|
|
- script: |
|
2019-09-12 17:47:25 +03:00
|
|
|
sbt -no-colors syntax/bench
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Benchmark the Parser
|
2019-09-12 17:47:25 +03:00
|
|
|
continueOnError: true
|
|
|
|
- script: |
|
2019-11-08 20:32:48 +03:00
|
|
|
sbt -no-colors runtime/Benchmark/compile
|
|
|
|
displayName: Check Runtime Benchmarks Compile
|
2019-07-11 13:37:57 +03:00
|
|
|
continueOnError: true
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'JUnit'
|
|
|
|
testResultsFiles: '**/TEST-*.xml'
|
2019-11-05 22:01:09 +03:00
|
|
|
- script: |
|
2019-11-18 16:36:03 +03:00
|
|
|
sbt language_server/assembly
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Build the Uberjar
|
2019-11-05 22:01:09 +03:00
|
|
|
continueOnError: true
|
|
|
|
- task: CopyFiles@2
|
|
|
|
inputs:
|
|
|
|
contents: "enso.jar"
|
|
|
|
TargetFolder: "$(Build.ArtifactStagingDirectory)"
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: "$(Build.ArtifactStagingDirectory)"
|
|
|
|
artifactName: enso-cli
|
2019-07-15 16:09:06 +03:00
|
|
|
- script: |
|
|
|
|
echo "##vso[task.complete result=Failed;]DONE"
|
|
|
|
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Fail on 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:
|
2019-07-15 16:09:06 +03:00
|
|
|
- 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
|
2019-07-15 16:09:06 +03:00
|
|
|
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"
|
2019-07-15 16:09:06 +03:00
|
|
|
displayName: Install GraalVM
|
|
|
|
- script: |
|
2019-09-25 19:49:43 +03:00
|
|
|
curl -fSL -o sbt.tgz https://piccolo.link/sbt-$(sbtVersion).tgz
|
|
|
|
tar -x -z -C ~ -f sbt.tgz
|
|
|
|
echo "##vso[task.setvariable variable=PATH]~/sbt/bin/:$PATH"
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Install SBT
|
2019-07-15 16:09:06 +03:00
|
|
|
- script: |
|
|
|
|
sbt -no-colors test
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Test All
|
2019-07-15 16:09:06 +03:00
|
|
|
continueOnError: true
|
|
|
|
- script: |
|
2019-09-12 17:47:25 +03:00
|
|
|
sbt -no-colors syntax/bench
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Benchmark the Parser
|
2019-09-12 17:47:25 +03:00
|
|
|
continueOnError: true
|
|
|
|
- script: |
|
2019-11-08 20:32:48 +03:00
|
|
|
sbt -no-colors runtime/Benchmark/compile
|
|
|
|
displayName: Check Runtime Benchmarks Compile
|
2019-07-15 16:09:06 +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')
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Fail on 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
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Install GraalVM
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-09-25 19:49:43 +03:00
|
|
|
curl -fSL -o sbt.tgz https://piccolo.link/sbt-$(sbtVersion).tgz
|
|
|
|
tar -x -z -C %USERPROFILE% -f sbt.tgz
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Install SBT
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-09-25 19:49:43 +03:00
|
|
|
call refreshenv
|
|
|
|
echo ##vso[task.setvariable variable=JAVA_HOME]C:\graalvm-ce-$(graalVersion)
|
|
|
|
echo ##vso[task.setvariable variable=PATH]C:\graalvm-ce-$(graalVersion)\bin;%PATH%
|
|
|
|
echo ##vso[task.setvariable variable=PATH]%USERPROFILE%\sbt\bin\;%PATH%
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Adjust Environment Variables
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-09-25 19:49:43 +03:00
|
|
|
sbt.bat test
|
2019-07-11 13:37:57 +03:00
|
|
|
continueOnError: true
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Test All
|
2019-07-11 13:37:57 +03:00
|
|
|
- script: |
|
2019-09-12 17:47:25 +03:00
|
|
|
sbt syntax/bench
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Benchmark the Parser
|
2019-09-12 17:47:25 +03:00
|
|
|
continueOnError: true
|
|
|
|
- script: |
|
2019-11-08 20:32:48 +03:00
|
|
|
sbt runtime/Benchmark/compile
|
|
|
|
displayName: Check Runtime Benchmarks Compile
|
2019-07-11 13:37:57 +03:00
|
|
|
continueOnError: true
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'JUnit'
|
|
|
|
testResultsFiles: '**/TEST-*.xml'
|
2019-07-15 16:09:06 +03:00
|
|
|
- script: |
|
|
|
|
echo "##vso[task.complete result=Failed;]DONE"
|
|
|
|
condition: eq(variables['Agent.JobStatus'], 'SucceededWithIssues')
|
2019-11-07 15:10:21 +03:00
|
|
|
displayName: Fail on Issues
|