Skip to content

Commit

Permalink
Merge branch 'master' into gh-1436
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Mar 4, 2020
2 parents 098f5a0 + 0350c93 commit 00e1db5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,19 @@ jobs:
- stage: test
env:
- CLIENT=zotero
- JOB=1
- stage: test
env:
- CLIENT=zotero
- JOB=2
- stage: test
env:
- CLIENT=jurism
- JOB=1
- stage: test
env:
- CLIENT=jurism
- JOB=2

- stage: release
if: env(TRAVIS_EVENT_TYPE) != cron AND env(TRAVIS_EVENT_TYPE) != pull_request
Expand Down
8 changes: 4 additions & 4 deletions test/behave
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BooleanAction(argparse.Action):
super().__init__(option_strings, dest, nargs=0, **kwargs)

def __call__(self, parser, namespace, values, option_string=None):
setattr(namespace, self.dest, option_string.startswith('--no'))
setattr(namespace, self.dest, not option_string.startswith('--no'))
class ClientAction(argparse.Action):
def __init__(self, option_strings, dest, nargs=None, **kwargs):
super().__init__(option_strings, dest, nargs=0, **kwargs)
Expand Down Expand Up @@ -76,7 +76,7 @@ if args.this:
sys.argv.extend(['--tags', branch.replace('gh-', '@') ])
args.slow = True

JOB_NUMBER = int(re.search(r'^[0-9]+\.([0-9]+)$', os.environ.get('TRAVIS_JOB_NUMBER', '0.0')).group(1))
JOB_NUMBER = int(os.environ.get('JOB', '0')) # because travis only does parallel builds if the env vars differ
if JOB_NUMBER == 0: # local run
process = subprocess.Popen(['npm', 'run', 'build'], stdout=subprocess.PIPE)
while True:
Expand All @@ -89,11 +89,11 @@ if JOB_NUMBER == 0: # local run
sys.exit(returncode)

elif args.nightly and not args.tagged: # only test for beta o
args.beta = (JOB_NUMBER % 2) == 1
args.beta = (JOB_NUMBER == 2)
args.slow = True

else:
sys.argv.extend(['--tags', f"{'~' if (JOB_NUMBER % 2) == 1 else ''}@test-cluster-1"])
sys.argv.extend(['--tags', f"{'~' if (JOB_NUMBER == 2) else ''}@test-cluster-1"])
args.slow = args.slow or args.tagged

if args.client == 'jurism' or args.beta:
Expand Down

0 comments on commit 00e1db5

Please sign in to comment.