Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
rename sample to app
Browse files Browse the repository at this point in the history
  • Loading branch information
mcxiaoke committed Jun 15, 2017
1 parent 355f89b commit 4cde1c6
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions huge_markets_test.py
Expand Up @@ -4,11 +4,12 @@
# @Date: 2015-11-25 14:30:02
import subprocess
import os
import sys

with open('huge_markets.txt','w+') as f:
for i in range(1000):
f.write("Test Market %s#test market %s\n" % (i,i))
f.write("中文:MARKET%s#test market %s\n" % (i,i))
with open('huge_markets.txt', 'w') as f:
for i in range(int(sys.argv[1])):
f.write("Test Market %s#test market %s\n" % (i, i))
f.write("中文:MARKET%s#test market %s\n" % (i, i))

subprocess.call(["./gradlew", "-Pmarket=huge_markets.txt", "clean", "archiveApkRelease"])
subprocess.check_output(["./gradlew", "-Pchannels=@huge_markets.txt", "-Poutput=tmp", "clean", "apkPaidRelease"])
os.remove('huge_markets.txt')
2 changes: 1 addition & 1 deletion settings.gradle
Expand Up @@ -2,4 +2,4 @@ include ':common'
include ':plugin'
include ':cli'
include ':helper'
include ':sample'
include ':app'
2 changes: 1 addition & 1 deletion test-build.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
./deploy-local.sh
echo "test clean build"
./gradlew clean build --stacktrace $1 $2
./gradlew clean assemblePaidRelease --stacktrace $1 $2
2 changes: 1 addition & 1 deletion test-market.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
./deploy-local.sh
echo "------ build for markets running..."
./gradlew -Pmarket=markets.txt clean apkRelease $1 $2
./gradlew -Pchannels=@channels/channels.txt clean apkRelease $1 $2
echo "------ build for markets finished!"

0 comments on commit 4cde1c6

Please sign in to comment.