Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .travis.yml #1

Closed
ljvmiranda921 opened this issue Jul 22, 2017 · 1 comment
Closed

Fix .travis.yml #1

ljvmiranda921 opened this issue Jul 22, 2017 · 1 comment
Assignees
Labels
bug Bugs, bug fixes, etc.

Comments

@ljvmiranda921
Copy link
Owner

  • PySwarms version: 0.1.0
  • Python version: 3.6.2
  • Operating System: Windows 10

Description

Uh-oh, I think I messed up with travis.yml, breaking up the build. Now, I just turned off the sync to
Travis CI so that it will stop sending me notifications of my failure :(

What I Did

I added these lines of code in .travis.yml. My test suite uses the numpy package so I decided to install it as a system environment. Little did I know that it will break like this. Please check build #21 in your Travis site.

virtualenv:
  system_site_packages: true
before_install:
  - sudo apt-get install -qq python-numpy python-scipy
@ljvmiranda921 ljvmiranda921 added bug Bugs, bug fixes, etc. help wanted Help is much appreciated and removed help wanted Help is much appreciated labels Jul 22, 2017
@ljvmiranda921 ljvmiranda921 self-assigned this Jul 22, 2017
@ljvmiranda921
Copy link
Owner Author

Fixed! The build should be passing right now.

It turns out that you don't have to manually set-up your own environments just to install numpy and scipy. You can simply update your requirements_dev.txt file and your setup.py so that Travis can install everything for you.

For more information, check this.

ljvmiranda921 pushed a commit that referenced this issue Aug 4, 2017
This is a major feature update that aims to fix
various points to make the Travis fix successfull.
Recall that various checkes failed when running your
first build:
  - Unit tests failed
  - Additional libraries (numpy, scipy) are missing
  - Some requirements are not explicitly defined.

In this commit, the following were changed:
  - Added a unit test module for the sphere_func()
  - Changed the requirements_dev.txt to include numpy and scipy
  - Changed setup.py to include requirements when building
    virtually.
  - Fixed console_utils() error.

This should fix the build right now.

Author: ljvmiranda921
ljvmiranda921 pushed a commit that referenced this issue Aug 4, 2017
This is a major feature update that aims to fix
various points to make the Travis fix successfull.
Recall that various checkes failed when running your
first build:
  - Unit tests failed
  - Additional libraries (numpy, scipy) are missing
  - Some requirements are not explicitly defined.

In this commit, the following were changed:
  - Added a unit test module for the sphere_func()
  - Changed the requirements_dev.txt to include numpy and scipy
  - Changed setup.py to include requirements when building
    virtually.
  - Fixed console_utils() error.

This should fix the build right now.

Author: ljvmiranda921
ljvmiranda921 pushed a commit that referenced this issue Aug 4, 2017
This is a major feature update that aims to fix
various points to make the Travis fix successfull.
Recall that various checkes failed when running your
first build:
  - Unit tests failed
  - Additional libraries (numpy, scipy) are missing
  - Some requirements are not explicitly defined.

In this commit, the following were changed:
  - Added a unit test module for the sphere_func()
  - Changed the requirements_dev.txt to include numpy and scipy
  - Changed setup.py to include requirements when building
    virtually.
  - Fixed console_utils() error.

This should fix the build right now.

Author: ljvmiranda921
@msat59 msat59 mentioned this issue Feb 20, 2021
2 tasks
mmfarrugia referenced this issue in mmfarrugia/pyswarms Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs, bug fixes, etc.
Projects
None yet
Development

No branches or pull requests

1 participant