mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-04 14:38:59 +00:00
Add appveyor
This commit is contained in:
1 file changed
+42
@@ -0,0 +1,42 @@
|
|||||||
|
version: '{build}-{branch}'
|
||||||
|
|
||||||
|
os: Default Azure
|
||||||
|
platform:
|
||||||
|
- x64
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- ruby_version: "22"
|
||||||
|
|
||||||
|
init:
|
||||||
|
- ps: |
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12'
|
||||||
|
- ps: |
|
||||||
|
While ((Test-NetConnection google.com -Port 80 -InformationLevel Quiet) -ne "True") {
|
||||||
|
echo "waiting for network..."
|
||||||
|
Start-Sleep 1
|
||||||
|
}
|
||||||
|
|
||||||
|
install:
|
||||||
|
- ps: |
|
||||||
|
choco install virtualbox --version 5.1.22
|
||||||
|
choco install vagrant --version 1.9.5
|
||||||
|
choco install ghc -y
|
||||||
|
cd $env:APPVEYOR_BUILD_FOLDER
|
||||||
|
- netsh winsock reset
|
||||||
|
- cabal update
|
||||||
|
- cabal install ShellCheck
|
||||||
|
- refreshenv
|
||||||
|
- ps: Restart-Computer -Force
|
||||||
|
- vagrant -v
|
||||||
|
- VBoxManage -v
|
||||||
|
- ssh -V
|
||||||
|
- ipconfig /all
|
||||||
|
- ps: $env:PATH="C:\Ruby$env:ruby_version\bin;$env:PATH"
|
||||||
|
- ps: gem install bundler --quiet --no-ri --no-rdoc
|
||||||
|
build_script:
|
||||||
|
- ps: Test-NetConnection google.com -Port 80
|
||||||
|
test_script:
|
||||||
|
- shellcheck ./*.sh
|
||||||
|
- shellcheck ./tests/*.sh
|
||||||
|
- ps: sh tests/tests.sh
|
||||||
Reference in new issue
Block a user