Skip to content

Commit

Permalink
CI for extension tests (#13)
Browse files Browse the repository at this point in the history
* Fix tests

* No more allow failures

* Allow failures for now
  • Loading branch information
derekbekoe authored Nov 3, 2017
1 parent 386bf4c commit dc94a3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: trusty
sudo: off
language: python
install:
- pip install pylint flake8 requests
- pip install pylint flake8 requests -q
jobs:
include:
- stage: verify
Expand All @@ -15,11 +15,11 @@ jobs:
python: 3.6
- stage: verify
env: PURPOSE='SourceTests'
script: python ./scripts/ci/test_source.sh
script: ./scripts/ci/test_source.sh
python: 2.7
- stage: verify
env: PURPOSE='SourceTests'
script: python ./scripts/ci/test_source.sh
script: ./scripts/ci/test_source.sh
python: 3.6
- stage: verify
env: PURPOSE='IndexVerify'
Expand Down
11 changes: 10 additions & 1 deletion scripts/ci/test_source.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/usr/bin/env bash
set -e

# Install CLI & CLI testsdk
echo "Installing azure-cli-testsdk and azure-cli..."
pip install "git+https://github.com/Azure/azure-cli@dev#egg=azure-cli-testsdk&subdirectory=src/azure-cli-testsdk" -q
echo "Installed."

for d in src/*/azext_*/tests;
do echo "Running tests for $d";
python -m unittest discover -v $d;
if [ -d $d ]; then
python -m unittest discover -v $d;
else
echo "Skipped $d as not a directory."
fi
done;

0 comments on commit dc94a3b

Please sign in to comment.