Skip to content

Commit

Permalink
Remove references to Travis (#2179)
Browse files Browse the repository at this point in the history
* Remove dependency on Travis

* .

* .

Co-authored-by: narrieta <narrieta>
  • Loading branch information
narrieta authored Feb 17, 2021
1 parent a4a8b42 commit 357a523
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 47 deletions.
38 changes: 0 additions & 38 deletions Changelog

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

## Develop branch status

[![Travis CI](https://travis-ci.org/Azure/WALinuxAgent.svg?branch=develop)](https://travis-ci.org/Azure/WALinuxAgent/branches)
[![CodeCov](https://codecov.io/gh/Azure/WALinuxAgent/branch/develop/graph/badge.svg)](https://codecov.io/gh/Azure/WALinuxAgent/branch/develop)

Each badge below represents our basic validation tests for an image, which are executed several times each day. These include provisioning, user account, disk, extension and networking scenarios.
Expand Down
5 changes: 1 addition & 4 deletions tests/common/osutil/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
from azurelinuxagent.common.osutil import get_osutil
from azurelinuxagent.common.utils import fileutil
from azurelinuxagent.common.utils.flexible_version import FlexibleVersion
from tests.tools import AgentTestCase, patch, open_patch, load_data, \
running_under_travis, skip_if_predicate_true

from tests.tools import AgentTestCase, patch, open_patch, load_data

actual_get_proc_net_route = 'azurelinuxagent.common.osutil.default.DefaultOSUtil._get_proc_net_route'

Expand Down Expand Up @@ -891,7 +889,6 @@ def test_remove_firewall_should_not_retry_invalid_rule(self):

self.assertFalse(osutil._enable_firewall)

@skip_if_predicate_true(running_under_travis, "The ip command isn't available in Travis")
def test_get_nic_state(self):
state = osutil.DefaultOSUtil().get_nic_state()
self.assertNotEqual(state, {})
Expand Down
4 changes: 0 additions & 4 deletions tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ def _safe_repr(obj, short=False):
return result[:_MAX_LENGTH] + ' [truncated]...'


def running_under_travis():
return 'TRAVIS' in os.environ and os.environ['TRAVIS'] == 'true'


def i_am_root():
return os.geteuid() == 0

Expand Down

0 comments on commit 357a523

Please sign in to comment.