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

osx build with unittest #12

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e30e71f
osx build with unittest
gyanesh-m Feb 28, 2018
3e19aa0
minor fix
gyanesh-m Feb 28, 2018
66872b2
Add travis file
gyanesh-m Feb 28, 2018
ea24365
Merge branch 'osx-build-test' of https://github.com/gyanesh-m/gensim-…
gyanesh-m Feb 28, 2018
6d73acf
Make unittest verbose and increase timeout
gyanesh-m Feb 28, 2018
7c58269
Add fast version check, make doc2vec tests verbose & revert travis fi…
gyanesh-m Mar 1, 2018
a86f216
Add tests in forge_test.sh
gyanesh-m Mar 1, 2018
17f2041
fix test_fast check
gyanesh-m Mar 1, 2018
4648966
Fetch test_fast.py and then try
gyanesh-m Mar 1, 2018
a0d1e01
Retry with curl
gyanesh-m Mar 2, 2018
107faad
Make debug logs visible.
gyanesh-m Mar 3, 2018
ace8fd1
Fetch and debug doc2vec test
gyanesh-m Mar 3, 2018
5a284bd
Display fast version
gyanesh-m Mar 5, 2018
97eb1aa
Display fast version
gyanesh-m Mar 5, 2018
21bb7c0
Debug tests for word2vec and fasttext
gyanesh-m Mar 5, 2018
9ba5e5e
Try fasttext first
gyanesh-m Mar 6, 2018
65bac25
Merge branch 'osx-build-test' of https://github.com/gyanesh-m/gensim-…
gyanesh-m Mar 11, 2018
770a8de
limit workaround
gyanesh-m Mar 11, 2018
2593aa8
Retry after curl
gyanesh-m Mar 11, 2018
2d40131
Remove accuracy test and try rest
gyanesh-m Mar 12, 2018
2efbe68
Test for complete w2v
gyanesh-m Mar 12, 2018
980ef3d
Add profiling for word2vec
gyanesh-m Mar 28, 2018
4b36ce3
Fix minor error
gyanesh-m Mar 28, 2018
1ccf055
Retry with pytest
gyanesh-m Mar 29, 2018
565ea05
Fix errors and retry using existing test code
gyanesh-m Mar 30, 2018
7468d9a
Fix minor error
gyanesh-m Mar 30, 2018
f651347
Fix minor error
gyanesh-m Mar 30, 2018
f74bc62
Add dependency for meta.yaml
gyanesh-m Mar 31, 2018
8c382de
Install pytest-profiling from source.
gyanesh-m Mar 31, 2018
62156e2
Change profiler to cprofile and retry
gyanesh-m Apr 18, 2018
1e72ae1
Add blas and openblas requirement
gyanesh-m Apr 20, 2018
55ce812
Remove variant
gyanesh-m Apr 20, 2018
b1d757a
Set number of threads to 1 and retry
gyanesh-m Apr 20, 2018
b7de836
Add path information
gyanesh-m Apr 22, 2018
cdbac2d
minor fix
gyanesh-m Apr 22, 2018
4e1b59a
Add flags info
gyanesh-m Apr 22, 2018
b9c9b7c
Remove thread restriction
gyanesh-m Apr 22, 2018
cf68967
Add path info
gyanesh-m Apr 23, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.

language: generic

os: osx
osx_image: xcode6.4

env:
matrix:

- CONDA_PY=27
- CONDA_PY=35
- CONDA_PY=36
global:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
- secure: "ecN7i24QmsWbGKfWOmzAj56rvl5Hh298I3OOFeED99DxJKlpucgxgXMOC2rYDVU8bMRVGZZxLkN1sMyowyM9uaWzrL/N6pA27AvOImMWGMVy7MOYhWHsTK73NAhuIxMMByqtQiOs9gEiOpJaQwxOQSDynae4rSCvul1bTeOyOcbsdk2cT8mkEKfUxy6M50wA20TvW/Q88lEmnC0C1Pa0dysJ85G29jBuH8yh3p4KwtiEyBNfvffqeQuUo1qJWNr9YEXXi/Aq18+DDsR3vLcSHSXMuKUHQ/TE7gq2LAAWEYkEGtOGiQFNeoFujSdmZ5dom6N9uLo/0Ta75VCZoytVgJTADgeghinyBCTBgoXjy3C4e7k/DHaBGdS1ZD42s4MLOYeAU8nJbjTGIlMzdfLzO6KjkLGTk4TBQm7/sDJiSUlf5wq9SrTB3O1UIlwUM5sS5MUC+xg3Btmz/W0HvtzI66oQoFjoh3QQnbGJM1MqpYqcR8QJRofSNfFzW8WDPhEm3bn8AlbjyNY1v9C0zZgHTRuT1Put46u7T0O2W4p6/0U+dsfv+6Iq5VxeKO2ptZRRpBX95Kf3KwEFgHyFsk6BQArU9Ijo3Ud+39wVcD5y9P9iKVugvdoBtL3yl74royeaXZXVwmhKYTYRTBMxe4Ab1Oqdan469Mj5d2JmTnYiKF4="


before_install:
# Fast finish the PR.
- |
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-build-setup-feedstock/master/recipe/ff_ci_pr_build.py | \
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1

# Remove homebrew.
- |
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew


install:
# Install Miniconda.
- |
echo ""
echo "Installing a fresh version of Miniconda."
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b

# Configure conda.
- |
echo ""
echo "Configuring conda."
source /Users/travis/miniconda3/bin/activate root
conda config --remove channels defaults
conda config --add channels defaults
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup

script:
- travis_wait conda build ./recipe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't look like the solution, but you can try (in debugging propose).


- travis_wait upload_or_check_non_existence ./recipe conda-forge --channel=main
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source:

build:
number: 0
skip: true # [win32 or osx or py34]
skip: true # [win32 or py34]
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
Expand Down Expand Up @@ -61,7 +61,9 @@ test:
commands:
- time bash ./forge_test.sh # [not win]
- nosetests --exe -v gensim # [win]

- python -m unittest -v # [osx]
- conda inspect objects -p $PREFIX $PKG_NAME # [osx]

about:
home: http://github.com/RaRe-Technologies/gensim
license: LGPL-3.0
Expand Down