Skip to content

Commit

Permalink
update nightly runner
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Oct 21, 2019
1 parent 0756581 commit af442cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
13 changes: 1 addition & 12 deletions scripts/mk_nuget_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import json
import os
import urllib.request
import zipfile
import sys
import os.path
Expand All @@ -20,16 +19,6 @@
import mk_util
import mk_project

#release_data = json.loads(urllib.request.urlopen("https://github.com/gitapi/repos/Z3Prover/z3/releases/latest").read().decode())
#release_tag_name = release_data['tag_name']
#release_tag_ref_data = json.loads(urllib.request.urlopen("https://github.com/gitapi/repos/Z3Prover/z3/git/refs/tags/%s" % release_tag_name).read().decode())
#release_tag_sha = release_tag_ref_data['object']['sha']

#release_version = release_tag_name[3:]
#release_commit = release_tag_sha # release_tag_data['object']['sha']

#print(release_version)

def mk_dir(d):
if not os.path.exists(d):
os.makedirs(d)
Expand Down Expand Up @@ -166,7 +155,7 @@ def sign_nuget_package():


def main():
packages = sys.argv[0]
packages = sys.argv[1]
print(packages)
mk_dir(packages)
unpack(packages)
Expand Down
5 changes: 4 additions & 1 deletion scripts/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ jobs:
inputs:
artifactName: 'Ubuntu'
targetPath: tmp
- script: python scripts/mk_nuget_task.py tmp
- script |
cd scripts
python mk_nuget_task.py ../tmp
cd ..

- job: Python
displayName: "Python packaging"
Expand Down

0 comments on commit af442cf

Please sign in to comment.