-
Notifications
You must be signed in to change notification settings - Fork 53
Test and push ARM build #48
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
Open
xuhdev
wants to merge
29
commits into
master
Choose a base branch
from
xuhdev-patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3de0665
Test and push ARM build
xuhdev 49621d6
Remove the exclusion of non-existing folders
xuhdev b2a4022
Remove non-existent file
xuhdev 3996c86
Add back pip install -r requirements-test.txt
xuhdev 5855167
Create requirements-test.txt
xuhdev 7a2e7f8
Move pip install up
xuhdev 512892b
Downgrade tensorflow to 1.14.0 for ARM compatibility
xuhdev 30730dc
Update requirements.txt
xuhdev 77bf5ad
Update requirements.txt
xuhdev 6c82045
Install tensorflow from a given URL on Pi
xuhdev f0038d4
Update Dockerfile.arm32v7
xuhdev 042ce09
our own fork of pip
xuhdev e5de214
tensorflow 1.13.1
xuhdev cf62145
Remove existing pip
xuhdev 7b37483
60 seconds
xuhdev 86fc556
Merge branch 'master' into xuhdev-patch-1
bdwyer2 eab64f3
Merge branch 'master' into xuhdev-patch-1
bdwyer2 d0af3c6
Merge branch 'master' into xuhdev-patch-1
bdwyer2 3cc2b10
Merge branch 'master' into xuhdev-patch-1
bdwyer2 ebf7e9e
add ARM documentation to README
bdwyer2 9d9cd4f
Use TF 1.14.0 for arm32v7
xuhdev e73f12f
Pin numba version to be 0.49.1
xuhdev cdd710a
Temporarily disable `-d` and see what's going on on Travis
xuhdev 9cef4dd
Remove "-it" as well
xuhdev 561cdf5
Figure out where libhdfs is
xuhdev fb121c6
Install mlocate
xuhdev c4d8c26
Try 1.13.1
xuhdev bded5a1
Revert "mlocate"
xuhdev a928330
Merge branch 'master' into xuhdev-patch-1
bdwyer2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,14 +1,47 @@ | ||
language: python | ||
|
||
python: | ||
- 3.6 | ||
- 3.7 | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
# Replace all slashes (which are common in branch names) in VERSION with dashes for Docker compatibility | ||
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then | ||
VERSION=latest; | ||
else | ||
VERSION=${TRAVIS_BRANCH//\//-}; | ||
fi | ||
|
||
# Default variables (used by Jenkins) | ||
- '[[ -z "$DOCKERFILE" ]] && export DOCKERFILE=Dockerfile || /bin/true' | ||
- '[[ -z "$IMAGE" ]] && export IMAGE=test || /bin/true' | ||
- '[[ -z "$ARCH" ]] && export ARCH=x86_64 || /bin/true' | ||
- '[[ -z "$VERSION" ]] && export VERSION=jenkins || /bin/true' | ||
|
||
install: | ||
- docker build -t max-audio-classifier . | ||
- docker run -it -d -p 5000:5000 max-audio-classifier | ||
- pip install pytest requests flake8 | ||
- docker build -f "$DOCKERFILE" -t codait/max-audio-classifier:"$IMAGE"-"$ARCH"-"$VERSION" . | ||
- docker run -it -d --rm -p 5000:5000 codait/max-audio-classifier:"$IMAGE"-"$ARCH"-"$VERSION" | ||
- pip install -r requirements-test.txt | ||
|
||
before_script: | ||
- flake8 . --max-line-length=127 | ||
- sleep 30 | ||
|
||
script: | ||
- pytest tests/test.py | ||
|
||
after_success: | ||
- if [[ "$IMAGE" != "test" && "$TRAVIS_PULL_REQUEST" == "false" ]] && [[ "$TRAVIS_BRANCH" == "master" || "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]]; then | ||
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin; | ||
docker push codait/max-audio-classifier:"$IMAGE"-"$ARCH"-"$VERSION"; | ||
fi | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
env: DOCKERFILE=Dockerfile IMAGE=test ARCH=x86_64 | ||
- os: linux | ||
arch: arm64 | ||
env: DOCKERFILE=Dockerfile.arm32v7 IMAGE=arm ARCH=arm32v7 |
This file contains hidden or 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,3 @@ | ||
pytest | ||
requests | ||
flake8 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.