This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
forked from conda-forge/obspy-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check calling command line scripts without options to see if that works
for win
- Loading branch information
Showing
2 changed files
with
36 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import os | ||
import platform | ||
import sys | ||
import matplotlib | ||
matplotlib.use("AGG") | ||
from obspy.core import run_tests | ||
# set env variable to skip one stray failing test | ||
# (only fails in Appveyor when building conda packages) | ||
os.environ["CONDAFORGE"] = '' | ||
# set env variable to skip code formatting checks | ||
os.environ["OBSPY_NO_FLAKE8"] = '' | ||
# this is embarassing.. APPVEYOR env variable is not set as it should be | ||
# according to appveyor docs (see | ||
# https://ci.appveyor.com/project/conda-forge/obspy-feedstock/build/1.0.37/job/cn9436iry5nl9nj6#L5903) | ||
if platform.system().lower() == 'windows': | ||
os.environ["APPVEYOR"] = "True" | ||
# check environment settings | ||
print("'CONDAFORGE' in env: {}".format(str("CONDAFORGE" in os.environ))) | ||
print("'APPVEYOR' in env: {}".format(str("APPVEYOR" in os.environ))) | ||
if "APPVEYOR" in os.environ: | ||
print("'APPVEYOR' env setting: '{}'".format(os.environ['APPVEYOR'])) | ||
|
||
# run tests and send test report | ||
errors = run_tests(report=True, hostname="conda-forge", verbosity=2) | ||
|
||
# for now don't fail conda-forge CI on failed tests, since often we run into | ||
# failing tests during packaging that are just due to e.g. numpy changing how | ||
# they print objects (i.e. doctest fails) | ||
# if errors: | ||
# sys.exit(1) | ||
# else: | ||
# sys.exit(0) | ||
#import platform | ||
#import sys | ||
#import matplotlib | ||
#matplotlib.use("AGG") | ||
#from obspy.core import run_tests | ||
## set env variable to skip one stray failing test | ||
## (only fails in Appveyor when building conda packages) | ||
#os.environ["CONDAFORGE"] = '' | ||
## set env variable to skip code formatting checks | ||
#os.environ["OBSPY_NO_FLAKE8"] = '' | ||
## this is embarassing.. APPVEYOR env variable is not set as it should be | ||
## according to appveyor docs (see | ||
## https://ci.appveyor.com/project/conda-forge/obspy-feedstock/build/1.0.37/job/cn9436iry5nl9nj6#L5903) | ||
#if platform.system().lower() == 'windows': | ||
# os.environ["APPVEYOR"] = "True" | ||
## check environment settings | ||
#print("'CONDAFORGE' in env: {}".format(str("CONDAFORGE" in os.environ))) | ||
#print("'APPVEYOR' in env: {}".format(str("APPVEYOR" in os.environ))) | ||
#if "APPVEYOR" in os.environ: | ||
# print("'APPVEYOR' env setting: '{}'".format(os.environ['APPVEYOR'])) | ||
# | ||
## run tests and send test report | ||
#errors = run_tests(report=True, hostname="conda-forge", verbosity=2) | ||
# | ||
## for now don't fail conda-forge CI on failed tests, since often we run into | ||
## failing tests during packaging that are just due to e.g. numpy changing how | ||
## they print objects (i.e. doctest fails) | ||
## if errors: | ||
## sys.exit(1) | ||
## else: | ||
## sys.exit(0) |