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
|
steps:
- script: |
set -e
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
sudo chmod +x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults
sudo service xvfb start
- task: NodeTool@0
inputs:
versionSpec: '16.14.0'
displayName: 'Install Node.js'
- script: |
npm install
npm run symlink
displayName: 'Install Dependencies'
- script: |
npm run compile
displayName: 'Compile'
- script: |
npm run lint
displayName: 'Hygiene Checks'
- script: |
DISPLAY=:10 npm run test
displayName: 'Unit Tests'
|