Use shared setup.yml on azure

Make sure things stay synchronized between different x64 jobs.
This commit is contained in:
Nikita Popov 2020-06-12 15:09:43 +02:00
parent ff7fd3dc85
commit e0d2070108
3 changed files with 11 additions and 13 deletions

View file

@ -20,11 +20,7 @@ jobs:
- script: make -j$(/usr/bin/nproc) >/dev/null
displayName: 'Make Build'
- template: install.yml
- script: |
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE test;"
displayName: 'Setup'
- template: setup.yml
- template: test.yml
parameters:
configurationName: ${{ parameters.configurationName }}

View file

@ -17,14 +17,7 @@ jobs:
- script: make -j$(/usr/bin/nproc) >/dev/null
displayName: 'Make Build'
- template: install.yml
- script: |
set -e
sudo service mysql start
sudo service postgresql start
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE test;"
displayName: 'Setup'
- template: setup.yml
- template: test.yml
parameters:
configurationName: ${{ parameters.configurationName }}

9
azure/setup.yml Normal file
View file

@ -0,0 +1,9 @@
steps:
- script: |
set -e
sudo service mysql start
sudo service postgresql start
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo -u postgres psql -c "CREATE DATABASE test;"
displayName: 'Setup'