-
-
Save FeodorFitsner/8e55dd6142dd04503d070297bdc2b223 to your computer and use it in GitHub Desktop.
Docker build tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_cloud: docker | |
environment: | |
matrix: | |
- job_name: mysql-1 | |
docker_image: mysql | |
MYSQL_ALLOW_EMPTY_PASSWORD: true | |
- job_name: redis-1 | |
docker_image: redis | |
- job_name: node-test | |
docker_image: node:8 | |
for: | |
- | |
matrix: | |
only: | |
- job_name: node-test | |
test_script: | |
- node --version | |
- npm --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment: | |
matrix: | |
- job_name: Get sources | |
- job_name: Build | |
job_depends_on: Get sources | |
- job_name: Test Node 8.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
docker_image: node:8 | |
- job_name: Test Node 10.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
docker_image: node:10 | |
- job_name: Test Node 11.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
docker_image: node:11 | |
- job_name: Test Node 12.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
docker_image: node:12.0 | |
- job_name: Deploy | |
job_depends_on: Tests | |
- job_name: Service_1 | |
job_group: services | |
job_allow_cancellation: true | |
- job_name: Service_2 | |
job_group: services | |
job_allow_cancellation: true | |
matrix: | |
fast_finish: true | |
for: | |
- | |
matrix: | |
only: | |
- job_name: Get sources | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Build | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_group: Tests | |
clone_script: [echo do not clone] | |
build_script: | |
- node --version | |
- npm --version | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Deploy | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_group: services | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Long-running service working..."; Start-Sleep -s 100; "Done!"' | |
test: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment: | |
matrix: | |
- job_name: Build | |
- job_name: Test Node 8.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
- job_name: Test Node 10.x | |
job_group: Tests | |
jobs_per_group: 2 | |
job_depends_on: Build | |
- job_name: Deploy | |
job_depends_on: Tests | |
- job_name: Service_1 | |
job_group: services | |
job_allow_cancellation: true | |
matrix: | |
fast_finish: true | |
allow_failures: | |
- job_group: Tests | |
for: | |
- | |
matrix: | |
only: | |
- job_name: Build | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_group: Tests | |
build_script: | |
- echo node --version | |
- echo npm --version | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Deploy | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_group: services | |
clone_script: [echo do not clone] | |
build_script: | |
- ps: '"Long-running service working..."; Start-Sleep -s 1000; "Done!"' | |
test: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment: | |
matrix: | |
- job_name: Build agent job | |
- job_name: Custom image job | |
docker_image: node:8 | |
docker_pull: always | |
- job_name: Custom image job (no sources) | |
docker_image: node:10 | |
- job_name: redis | |
docker_image: redis | |
job_allow_cancellation: true | |
matrix: | |
fast_finish: true | |
for: | |
- | |
matrix: | |
only: | |
- job_name: Build agent job | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Custom image job | |
# clone_script: [echo do not clone] | |
build_script: | |
- ls | |
- node --version | |
- npm --version | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Custom image job (no sources) | |
clone: off | |
build_script: | |
- ls | |
- node --version | |
- npm --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment: | |
matrix: | |
- job_name: Build agent job | |
- job_name: Custom image job | |
docker_image: mcr.microsoft.com/windows/nanoserver:1809 | |
matrix: | |
fast_finish: true | |
for: | |
- | |
matrix: | |
only: | |
- job_name: Build agent job | |
build_script: | |
- ps: '"Working..."; Start-Sleep -s 5; "Done!"' | |
test: off | |
- | |
matrix: | |
only: | |
- job_name: Custom image job | |
# clone_script: [echo do not clone] | |
build_script: | |
- dir | |
- ver | |
test: off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment