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

Commit

Permalink
Travis-CI (#870)
Browse files Browse the repository at this point in the history
* Continuous integration through Travis CI

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets |
| License       | MIT
| Doc PR        |
  • Loading branch information
sergey-shandar authored and yaqiyang committed Sep 22, 2016
1 parent e7214b5 commit d303c34
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 18 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: php

sudo: false

env:
- AZURE_STORAGE_CONNECTION_STRING="UseDevelopmentStorage=true;"

matrix:
include:
- php: 5.5
- php: 5.6
fast_finish: true

before_script:
- composer install --prefer-dist -o

script: ./vendor/bin/phpunit -c phpunit.local.xml.dist
31 changes: 31 additions & 0 deletions phpunit.local.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by PHP Project Wizard (PPW) 1.1.0-dev on Tue Feb 22 10:57:31 CET 2011 -->

<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
verbose="true">
<testsuites>
<testsuite name="azure-sdk-for-php">
<directory suffix="Test.php">tests/unit/</directory>
<exclude>tests/unit/WindowsAzure/MediaServices/MediaServicesRestProxyTest.php</exclude>
</testsuite>
</testsuites>

<logging>
<log type="coverage-html" target="bin/coverage" title="azure-sdk-for-php"
charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="bin/logs/clover.xml"/>
<log type="junit" target="bin/logs/unit.xml" logIncompleteSkipped="false"/>
</logging>

<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
<exclude>
<file>src/WindowsAzure.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>
2 changes: 1 addition & 1 deletion tests/framework/RestProxyTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* PHP version 5
*
* @category Microsoft
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

namespace Tests\unit\WindowsAzure\Common\Internal\Authentication;

use Tests\Mock\WindowsAzure\Common\Internal\Authentication\OAuthSchemeMock;
use Tests\mock\WindowsAzure\Common\Internal\Authentication\OAuthSchemeMock;
use WindowsAzure\Common\Internal\Authentication\OAuthScheme;
use WindowsAzure\Common\Internal\Resources;
use Tests\Framework\ServiceRestProxyTestBase;
use Tests\Framework\TestResources;
use Tests\framework\ServiceRestProxyTestBase;
use Tests\framework\TestResources;
use WindowsAzure\Common\Internal\Http\HttpClient;
use WindowsAzure\Common\Internal\MediaServicesSettings;
use WindowsAzure\Common\Internal\OAuthRestProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace Tests\unit\WindowsAzure\Common\Internal\Authentication;

use Tests\Mock\WindowsAzure\Common\Internal\Authentication\SharedKeyAuthSchemeMock;
use Tests\mock\WindowsAzure\Common\Internal\Authentication\SharedKeyAuthSchemeMock;
use WindowsAzure\Common\Internal\Resources;
use Tests\Framework\TestResources;
use Tests\framework\TestResources;

/**
* Unit tests for SharedKeyAuthScheme class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
namespace Tests\unit\WindowsAzure\Common\Internal\Authentication;

use WindowsAzure\Common\Internal\Authentication\StorageAuthScheme;
use Tests\Mock\WindowsAzure\Common\Internal\Authentication\StorageAuthSchemeMock;
use Tests\Framework\TestResources;
use Tests\mock\WindowsAzure\Common\Internal\Authentication\StorageAuthSchemeMock;
use Tests\framework\TestResources;
use WindowsAzure\Common\Internal\Resources;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace Tests\unit\WindowsAzure\Common\Internal\Authentication;

use Tests\Mock\WindowsAzure\Common\Internal\Authentication\TableSharedKeyLiteAuthSchemeMock;
use Tests\mock\WindowsAzure\Common\Internal\Authentication\TableSharedKeyLiteAuthSchemeMock;
use WindowsAzure\Common\Internal\Resources;
use Tests\Framework\TestResources;
use Tests\framework\TestResources;

/**
* Unit tests for TableSharedKeyLiteAuthScheme class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

namespace Tests\unit\WindowsAzure\Common\Internal\Http;

use Tests\Framework\TestResources;
use Tests\Mock\WindowsAzure\Common\Internal\Filters\SimpleFilterMock;
use Tests\framework\TestResources;
use Tests\mock\WindowsAzure\Common\Internal\Filters\SimpleFilterMock;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\Http\HttpClient;
use WindowsAzure\Common\Internal\Http\Url;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/WindowsAzure/Common/Internal/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

use WindowsAzure\Common\Internal\Logger;
use WindowsAzure\Common\Internal\Resources;
use Tests\Framework\VirtualFileSystem;
use Tests\framework\VirtualFileSystem;

/**
* Unit tests for class Logger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function testGetSetAssetDeliveryConfiguration()
}

/**
* @covers WindowsAzure\MediaServices\Models\AssetDeliveryPolicyConfigurationKey::strignifyAssetDeliveryPolicyConfiguartionKey
* @covers WindowsAzure\MediaServices\Models\AssetDeliveryPolicyConfigurationKey::stringifyAssetDeliveryPolicyConfiguartionKey
* @covers WindowsAzure\MediaServices\Models\AssetDeliveryPolicyConfigurationKey::parseAssetDeliveryPolicyConfiguartionKey
*/
public function testStrignifyParseDeliveryPolicyConfiguartionKey()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace Tests\unit\WindowsAzure\ServiceBus;

use Tests\Framework\ServiceBusRestProxyTestBase;
use Tests\framework\ServiceBusRestProxyTestBase;
use WindowsAzure\Common\ServiceException;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\ServiceBus\ServiceBusRestProxy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

namespace Tests\unit\WindowsAzure\ServiceManagement;

use Tests\Framework\ServiceRestProxyTestBase;
use Tests\Framework\ServiceManagementRestProxyTestBase;
use Tests\Framework\TestResources;
use Tests\framework\ServiceRestProxyTestBase;
use Tests\framework\ServiceManagementRestProxyTestBase;
use Tests\framework\TestResources;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\Http\HttpClient;
use WindowsAzure\Common\Internal\Serialization\XmlSerializer;
Expand Down

0 comments on commit d303c34

Please sign in to comment.