Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
BUILD: added build setup files. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkazmsft authored Nov 7, 2019
1 parent 442a655 commit 47d4071
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
8 changes: 5 additions & 3 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

This project uses unit and integration tests only with Python files and notebooks:

* In the unit tests we just make sure the notebook runs.
* In the integration tests we use a bigger dataset for more epochs and we test that the metrics are what we expect.
* In the unit tests we just make sure our metrics are sane.
* In the integration tests we test that our models execute training and scoring scripts and that our notebooks all run to completion.

TODO: add more info
## CI/CD

You can find build configuration files in the `cicd` folder.

12 changes: 10 additions & 2 deletions azure-pipelines.yml → tests/cicd/component_governance.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Starter pipeline
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Starter pipeline for legal clearance
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

# Pull request against these branches will trigger this build
pr:
- master
- staging

trigger:
- master
- staging

pool:
vmImage: 'ubuntu-latest'
Expand All @@ -15,4 +24,3 @@ steps:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'

37 changes: 37 additions & 0 deletions tests/cicd/main_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Pull request against these branches will trigger this build
pr:
- master
- staging

# Any commit to this branch will trigger the build.
trigger:
- master
- staging

jobs:

- job: unit test job
timeoutInMinutes: 10 # how long to run the job before automatically cancelling
pool:
name: deepseismicagentpool

steps:
- bash: |
echo "First step"
echo "Replace this with command"
echo "Dummy unit test job passed"
displayName: Unit Test Job
- job: integration test job
timeoutInMinutes: 10 # how long to run the job before automatically cancelling
pool:
name: deepseismicagentpool

steps:
- bash: |
echo "First step"
echo "Dummy integration test job passed"
displayName: Integration Test Job

0 comments on commit 47d4071

Please sign in to comment.