Commit Graph

123 Commits

Author SHA1 Message Date
Mike Salvatore dba9b9a637 Project: Update swimm binary download location in .travis.yaml 2022-03-31 20:02:43 -04:00
Ilija Lazoroski f2b498d3c9 Project: Add upgrade to pipenv in Travis 2022-03-30 13:34:22 -04:00
Mike Salvatore 9215ed32ad Travis: Download latest swimm from github 2021-10-14 07:51:33 -04:00
Shreya Malviya d118cdf3f5 travis: Update Swimm version 2021-08-31 12:49:57 +05:30
Mike Salvatore b1fe850624 Travis: Use swimm version 0.5.0, and not "latest" from GitHub API
GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
2021-07-15 12:13:16 -04:00
Mike Salvatore 23c298a5f1 Travis: Use hugo version 0.85.0, and not "latest" from GitHub API
GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
2021-07-15 12:00:57 -04:00
Mike Salvatore 0cd9709b82 island: Remove server_config.json.develop
Since Monkey Island no longer writes to server_config.json in the source
code directory, and each package will overwrite server_config.json with
its own server config (until we separate the deployment from the config
in issue #1205), we no longer need server_config.json.develop and we
don't need to worry about accidentally committing credentials to git.
2021-06-03 20:38:13 -04:00
Mike Salvatore c17ccb05f0 travis: cache pipenv 2021-05-10 10:39:15 -04:00
Mike Salvatore f25cfe277d travis: Install hugo binary from github
It currently takes 4 minutes to install hugo with homebrew. Using a
faster way to install hugo could speed up the Travis CI build by as much
as 42%.
2021-05-10 10:08:43 -04:00
Mike Salvatore b41a2f2366 travis: Fail build if vulture finds dead code 2021-05-05 19:19:59 +05:30
Mike Salvatore 54f640d83b travis: install node v12.x, instead of latest 2021-04-27 07:30:32 -04:00
VakarisZ c00754a3a4 Moved dev requirements of black, coverage, flake and others to dev dependencies of the island to be a single source of truth 2021-04-22 09:50:29 -04:00
VakarisZ e4415d822a Fixed requirement installation in travis to install from lock files, so that travis would ideally replicate our development 2021-04-22 09:50:29 -04:00
VakarisZ e7cef5fd9f Updated travis to use pipenv 2021-04-22 09:50:29 -04:00
Shreya d01de96e95 Change max JS warnings limit to 0 in travis.yml 2021-04-12 18:43:37 +05:30
Mike Salvatore 2792bac5e6 Merge branch 'e501-warnings' into develop
Resolves #1071
2021-04-08 08:02:53 -04:00
Shreya Malviya 4d951e2a8a
Merge pull request #1082 from guardicore/swimm-verify
Swimm verify
2021-04-08 17:31:31 +05:30
Shreya 2f8441f1d5 Update travis script for swimm verify 2021-04-08 17:12:10 +05:30
Mike Salvatore 7901446b4e ci: expand flake8 checks from `monkey/` to whole repo 2021-04-07 13:41:40 -04:00
Mike Salvatore 958fa50d83 Merge branch 'pre-commit' into develop 2021-04-07 11:07:27 -04:00
Mike Salvatore f22fc8e37e ci: use swimm version 0.4.1 in travis.yml 2021-04-07 07:16:57 -04:00
VakarisZ cd59e9ba1a Updated travis script to use the latest swimm version. 2021-04-07 06:57:04 -04:00
Mike Salvatore 1414d132d3 ci: Add swimm verify back to travis.yml
This reverts commit 4aa9a14f13.
2021-04-07 06:56:10 -04:00
Shreya ca365717b1 Modify travis script for isort 2021-04-06 17:50:52 -04:00
Mike Salvatore d0e1239b27 ci: fail the build if code is not formatted with black 2021-04-06 09:15:35 -04:00
Mike Salvatore c1929c2bd3 ci: remove dlint from travis
Issue #1075 has been created to track the task to add this back in and
integrate with pre-commit
2021-04-05 14:26:24 -04:00
Mike Salvatore a7f8efa102 ci: fail travis build if flake8 finds any issues 2021-04-05 13:45:18 -04:00
Mike Salvatore 4966aaf213 ci: freeze versions of certain packages in travis build
Fix the versions of black, flake8, and isort in travis so that the same
versions are being used to pass/fail the build as developers are using
in their pre-commit hooks
2021-04-05 10:22:27 -04:00
Mike Salvatore ecfc59cfd7 ci: fail the build if code is not formatted with black 2021-04-05 07:53:03 -04:00
Mike Salvatore fef44bcd05 cc: deploy "develop" environment by default 2021-03-31 07:36:07 -04:00
VakarisZ 24564fd0f0 Removed ScoutSuite from travis, since it's no longer a submodule 2021-03-17 11:49:51 -04:00
Mike Salvatore 4aa9a14f13 ci: remove `swimm verify` for now
There is a bug in swimm that is causing `swimm verify` to fail in the CI
pipeline, eventhough it succeeds locally. Disabling for now while the
swimm team works to rectify the issue.
2021-02-23 07:51:56 -05:00
VakarisZ 2549e1f345 Deleted custom travis flags that remove scoutsuite code checking, because they are already added in config files 2021-01-28 16:32:24 +02:00
VakarisZ ade2917ba3 Merge remote-tracking branch 'upstream/develop' into 519/scoutsuite-integration
# Conflicts:
#	.swm/OwcKMnALpn7tuBaJY1US.swm
#	.swm/tbxb2cGgUiJQ8Btma0fp.swm
#	.travis.yml
#	deployment_scripts/config
#	monkey/common/utils/exceptions.py
#	monkey/infection_monkey/control.py
#	monkey/infection_monkey/exploit/hadoop.py
#	monkey/monkey_island/cc/environment/set_server_config.py
#	monkey/monkey_island/cc/resources/pba_file_upload.py
#	monkey/monkey_island/cc/services/version_update.py
#	monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunOptions.js
#	monkey/monkey_island/cc/ui/src/styles/Main.scss
#	monkey/monkey_island/cc/ui/src/styles/components/Buttons.scss
2021-01-28 16:13:26 +02:00
VakarisZ d4dc42adb5 Removed the need to change server_config.json just to run tests. 2021-01-19 15:51:18 +02:00
Mike Salvatore 74933daf8d ci: Use pytest-cov instead of coverage
For some unknown reason, running `coverage` omits some python files from
the coverage report. It also runs the test suite a second time, which is
inefficient. By using pytest-cov, tests are only run once and coverage
data is more complete.
2021-01-14 14:10:43 -05:00
VakarisZ 1bff64f09b
Merge pull request #875 from VakarisZ/validation_script
Validation script
2020-12-22 15:48:39 +02:00
Shreya 50bec61494 Update apt-get commands for Swimm in Travis 2020-12-15 11:33:59 +05:30
Shreya 9783b57761 Swimm changes in Travis 2020-12-10 00:18:56 +05:30
Shreya 96e103ada5 Add Swimm dependencies to Travis 2020-12-09 23:44:38 +05:30
Shreya b78046e6f4 Update Swimm in Travis 2020-12-09 23:18:01 +05:30
VakarisZ 6401826ee3 Fixed travis script bug, where flake8 didn't pick up its configuration file 2020-11-06 13:18:03 +02:00
VakarisZ 1f1682fad8 Exported multiple configurations of CI tools to separate configurations, improved script 2020-11-06 11:48:52 +02:00
VakarisZ 2e35b9ac43 Initial implementation of validation script 2020-11-05 14:58:52 +02:00
VakarisZ 9540c93013 Fixed swimm validation in travis 2020-10-16 14:20:09 +03:00
VakarisZ 7478eab359 Updated swimm version for travis 2020-10-08 11:26:42 +03:00
VakarisZ 22f77d4a0a Updated swimm version for travis 2020-10-08 10:27:22 +03:00
VakarisZ 94b960fe42 Last travis bugfix regarding isort 2020-10-07 10:55:03 +03:00
VakarisZ 1af19dc8fa Fixed more bugs in travis, related to pytest and coverage 2020-10-07 10:39:44 +03:00
VakarisZ abe20c6a3a Once again fixed isort bug in travis and fixed some imports 2020-10-07 10:32:33 +03:00