1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Compare commits

...

3 commits

Author SHA1 Message Date
Shlomi Fish
2983648a4c Add python3 PATH for pip3 on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-02-23 15:24:43 +02:00
Shlomi Fish
047a58238d Add python3 to homebrew on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-02-23 14:22:46 +02:00
Shlomi Fish
96a91f6148 SHOULD_PUT_bye_for_now_FIRST = False
To avoid complaints about non random music.
2020-02-23 12:30:37 +02:00
2 changed files with 13 additions and 2 deletions

View file

@ -1,7 +1,9 @@
addons:
homebrew:
update: true
brewfile: true
packages:
- python3
update: true
cache:
directories:
- $HOME/perl_modules
@ -23,6 +25,12 @@ install:
# Tests are failing for them sometimes
- sudo cpanm --notest Capture::Tiny IPC::System::Simple
- sudo cpanm Code::TidyAll::Plugin::Flake8 Perl::Tidy Test::Code::TidyAll Test::Differences Test::TrailingSpace
# Taken from https://github.com/mesa3d/mesa/blob/4d57a2750485e51b34e0bc413100e4e2787a4e84/.travis.yml
# thanks!
# Set PATH for homebrew pip3 installs
- PYTHON_VERSION=$(python3 -V | awk '{print $2}' | cut -d. -f1-2)
- PATH="$HOME/Library/Python/$PYTHON_VERSION/bin:${PATH}"
- export PY_MODS='attrs configobj pycotap pysol-cards random2 setuptools six'
- sudo pip3 install --upgrade $PY_MODS flake8 flake8-import-order
- sudo pip2 install --upgrade $PY_MODS

View file

@ -355,7 +355,10 @@ Please check your %(app)s installation.
if music:
app.music_playlist = list(music)[:]
app.miscrandom.shuffle(app.music_playlist)
if 1:
# Cancelling because otherwise people complain
# that the music order is not random.
SHOULD_PUT_bye_for_now_FIRST = False
if SHOULD_PUT_bye_for_now_FIRST:
for m in app.music_playlist:
if m.name.lower() == "bye_for_now":
app.music_playlist.remove(m)