Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐳 changes to allow the bot to work on Docker
- Loading branch information
1 parent
77e9a75
commit 0202dc6
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
sudo: required | ||
language: python | ||
|
||
matrix: | ||
include: | ||
- env: TYPE=docker | ||
sudo: required | ||
- env: TYPE=build | ||
os: linux | ||
python: 3.5 | ||
dist: trusty | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
install: | ||
- if [ "$TYPE" = "build" ]; then ./.travis/install.sh; fi; | ||
|
||
script: | ||
- if [ "$TYPE" = "docker" ]; then docker build -t musicbot .; docker images -a; fi; | ||
- if [ "$TYPE" = "build" ]; then python -m compileall ./musicbot; fi; | ||
|
||
after_success: | ||
- if [ "$TRAVIS_BRANCH" == "master" ]; then docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASS"; docker tag musicbot $DOCKER_USERNAME/musicbot ; docker push $DOCKER_USERNAME/musicbot; fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
brew install git | ||
brew install ffmpeg | ||
brew install opus | ||
brew install libffi | ||
brew install libsodium | ||
python3 -m pip install -U pip | ||
python3 -m pip install -U -r requirements.txt | ||
else | ||
sudo apt-get install build-essential unzip -y | ||
sudo apt-get install software-properties-common -y | ||
sudo add-apt-repository ppa:deadsnakes -y | ||
sudo add-apt-repository ppa:mc3man/trusty-media -y | ||
sudo add-apt-repository ppa:chris-lea/libsodium -y | ||
sudo apt-get update -y | ||
sudo apt-get install git python3.5-dev libav-tools libopus-dev libffi-dev libsodium-dev python3-pip -y | ||
sudo apt-get upgrade -y | ||
sudo python3 -m pip install -U pip | ||
sudo python3 -m pip install -U -r requirements.txt | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0202dc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaydenkieran , why did you implement this artificial restriction, and obfuscated the error message?