Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-images-generator
Commits
7e29c5f5
Commit
7e29c5f5
authored
Sep 17, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI
parent
4114ad3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
appveyor.yml
appveyor.yml
+23
-18
No files found.
appveyor.yml
View file @
7e29c5f5
environment
:
priv_key
:
secure
:
ek1AH0N8/KF6VoildmkHnu4TY1yBZcptm20AesAOanRSSGLFqkXeRxL80mHSXtiVY8ggtQNsEQR4M69gCiw1OPVWz4OAN6Vg6id6kho9GqYxWCdADbmffSNPB5leksRGjGmkAF99WHiOIZrLRUb6Bia91Fe5+SngPhI01GDDUZA2urv9x50uBBhc+kvV0bv7J5TeXDGr7tfZ3J2aL/3tf/WPqBkqjWlGAj99HTWpkIiQgwaBHoyBvEFD0uHa1BdSmI7PySGabbx4/4zqyGkO38Ce7t/Ntu/dgedzVxlXYfuiXDI8caAPZSVsJ9E2S3VKesZJzHtV9KM/8Xq0RFPythdC/qTvd2e3IAZGudZpgbUHGAHLJnCzn189Zm+Qle8CbbVuPNDcf1B/G/XwEU2MsDXGkF/kFxdeqbHgjzneyns=
matrix
:
-
locale
:
zh-CN
#- locale: ja-JP
#- locale: zh-Classical
version
:
'
{build}'
init
:
-
ps
:
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
cache
:
-
C:\ProgramData\chocolatey\bin
-
C:\ProgramData\chocolatey\lib
-
vendor/bundle
install
:
-
dir /b | xargs -P 8 echo
# ssh key and submodules
-
ps
:
$fileContent = "-----BEGIN EC PRIVATE KEY-----`n"
-
ps
:
$fileContent += $env:priv_key.Replace(' ', "`n")
-
ps
:
$fileContent += "`n-----END EC PRIVATE KEY-----`n"
-
ps
:
Set-Content c:\users\appveyor\.ssh\id_ecdsa $fileContent
-
git submodule update --init --recursive ImgGen magicseteditor ygopro-images-raw
-
git clone git@github.com:mycard/ygopro-database.git
# environment and system dependency
-
choco install imagemagick
-
choco install imagemagick
.tool
-
refreshenv
-
set PATH=C:\Ruby22\bin;%PATH%
# application dependency
-
bundle config --local path vendor/bundle
-
bundle install
# mock data
-
mv ygopro-database/cards.zh-CN.cdb ygopro-database/zh-CN.cdb
# data
-
ps
:
Start-FileDownload https://github.com/mycard/ygopro-database/raw/master/cards.%locale%.cdb
-
move cards.%locale%.cdb ygopro-database\%locale%.cdb
-
mkdir ygopro-images
-
echo {} > ygopro-images/records.json
after_build
:
-
ruby generate.rb
zh-CN
-
bash -c 'ls -1 mse-sets/data*-
zh-CN.mse-set | xargs -I {} -P 4 magicseteditor/mse.com --export {} "ygopro-images-zh-CN
/{card.gamecode}.png"'
-
ruby generate.rb
$locale
-
bash -c 'ls -1 mse-sets/data*-
$locale.mse-set | xargs -I {} -P 4 magicseteditor/mse.com --export {} "ygopro-images-mse
/{card.gamecode}.png"'
-
mkdir ygopro-images\thumbnail
-
bash -c 'ls -1 ygopro-images-zh-CN | sed -e 's/\.png$//' | xargs -I {} -P 4 magick "ygopro-images-zh-CN/{}.png" -colorspace RGB -resize 177x254! -colorspace sRGB "ygopro-images/{}.jpg"'
-
bash -c 'ls -1 ygopro-images-zh-CN | sed -e 's/\.png$//' | xargs -I {} -P 4 magick "ygopro-images-zh-CN/{}.png" -colorspace RGB -resize 44x64! -colorspace sRGB "ygopro-images/thumbnail/{}.jpg"'
-
bash -c 'ls -1 ygopro-images-mse | sed -e 's/\.png$//' | xargs -I {} -P 4 magick ygopro-images-mse/{}.png -colorspace RGB -write mpr:image +delete \( mpr:image -resize 177x254! -colorspace sRGB -write "ygopro-images/{}.jpg" \) \( mpr:image -resize 44x64! -colorspace sRGB -write ygopro-images/thumbnail/{}.jpg \)'
artifacts
:
-
path
:
ygopro-images
name
:
ygopro-images-zh-CN
type
:
7z
deploy
:
release
:
latest
description
:
'
Automatic
build'
provider
:
GitHub
auth_token
:
secure
:
itZ9Z1dxEpfPJLdTs/PiY98pVZ3GCLNWfid7eAu7SL88Jl9AIrf/3rviKFEbsnoY
# your encrypted token from GitHub
draft
:
fals
e
prerelease
:
fals
e
prerelease
:
tru
e
force_update
:
tru
e
on
:
branch
:
master
# release from master branch only
#appveyor_repo_tag: true # deploy on tag push only
on_finish
:
-
ps
:
$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#build: off
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment