-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from datmo/os-builds
moved build statuses to chart + add in circle ci for mac osx
- Loading branch information
Showing
3 changed files
with
61 additions
and
10 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
machine: | ||
|
||
xcode: | ||
version: 9.0 | ||
|
||
environment: | ||
LOGGING_LEVEL: DEBUG | ||
TEST_PACKAGE: python -m pytest | ||
|
||
pre: | ||
- echo "Creating python environments" | ||
- curl -o mconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | ||
- chmod +x mconda.sh | ||
- ./mconda.sh -b -p $HOME/miniconda | ||
- | | ||
for version in 2.7.10 3.5.1 3.6.1 | ||
do | ||
export PATH="$HOME/miniconda/bin:$PATH" && conda create --yes -n datmo_env$version python=$version pip; | ||
export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env$version && pip install pytest --user && source deactivate datmo_env$version | ||
done | ||
dependencies: | ||
|
||
post: | ||
- echo "Installing datmo to each environment" | ||
- | | ||
for version in 2.7.10 3.5.1 3.6.1 | ||
do | ||
export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env$version && python setup.py install && source deactivate datmo_env$version; | ||
done | ||
test: | ||
override: | ||
# Avoiding loop here, so that each test shown in separate tab in circle-ci | ||
- echo "Running Test with 2.7.10" | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env2.7.10 && $TEST_PACKAGE && source deactivate datmo_env2.7.10; | ||
- echo "Running Test with 3.4.1" | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.4.1 && $TEST_PACKAGE && source deactivate datmo_env3.4.1; | ||
- echo "Running Test with 3.5.1" | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.5.1 && $TEST_PACKAGE && source deactivate datmo_env3.5.1; | ||
- echo "Running Test with 3.6.1" | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.6.1 && $TEST_PACKAGE && source deactivate datmo_env3.6.1; |