Skip to content

Commit

Permalink
More CI for source tests (#11)
Browse files Browse the repository at this point in the history
* Source tests

* minor change

* We allow test failures for now until we address how to include the CLI imports in tests

* Minor change
  • Loading branch information
derekbekoe committed Nov 2, 2017
1 parent 0673a65 commit fdb4c8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ jobs:
- stage: verify
env: PURPOSE='SourceStatic'
script: ./scripts/ci/test_static.sh
python: 3.6
python: 2.7
- stage: verify
env: PURPOSE='SourceStatic'
script: ./scripts/ci/test_static.sh
python: 3.6
- stage: verify
env: PURPOSE='SourceTests'
script: python ./scripts/ci/test_source.sh
python: 2.7
- stage: verify
env: PURPOSE='IndexVerify'
script: python ./scripts/ci/test_index.py -v
env: PURPOSE='SourceTests'
script: python ./scripts/ci/test_source.sh
python: 3.6
- stage: verify
env: PURPOSE='IndexVerify'
script: python ./scripts/ci/test_index.py -v
python: 2.7
python: 3.6
allow_failures:
- env: PURPOSE='SourceTests'
7 changes: 7 additions & 0 deletions scripts/ci/test_source.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e

for d in src/*/azext_*/tests;
do echo "Running tests for $d";
python -m unittest discover -v $d;
done;

0 comments on commit fdb4c8b

Please sign in to comment.