Skip to content

Commit

Permalink
Build only tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Sep 21, 2017
1 parent f7e26fa commit a4a154a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
18 changes: 7 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# File system layout
# %APPVEYOR_BUILD_FOLDER%/
# - depot_tools/ (in PATH)
# - repo/
# - pdfium/
# - out/
skip_non_tags: true
test: off

environment:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GYP_MSVS_VERSION: 2017
PDFium_BRANCH: $(APPVEYOR_REPO_TAG)

configuration:
- Debug
Expand All @@ -25,12 +23,10 @@ artifacts:

deploy:
- provider: GitHub
tag: latest
release: 'Latest build from master'
description: "This is the latest build from the 'master' branch"
prerelease: true
tag: $(APPVEYOR_REPO_TAG)
description: "This version was built with branch $(APPVEYOR_REPO_TAG) of PDFium"
force_update: true
auth_token:
secure: JH8IVbdgVLz16ZXQLO41jQ5OsC7wR8IMRPAzinrdqpvgfhe/btgtr1xZ5trO2Eux
on:
branch: master
appveyor_repo_tag: true
9 changes: 8 additions & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
: GYP_MSVS_VERSION = 2017 | 2015
: CONFIGURATION = Debug | Release
: PLATFORM = x86 | x64
: PDFium_BRANCH = master | chromium/3211 | ...

: Input
set DepotTools_URL=https://storage.googleapis.com/chrome-infra/depot_tools.zip
Expand Down Expand Up @@ -35,10 +36,16 @@ call 7z -bd x depot_tools.zip -o%DepotTools_DIR%
set PATH=%DepotTools_DIR%;%PATH%
set DEPOT_TOOLS_WIN_TOOLCHAIN=0

: Checkout
: Clone
call gclient config --unmanaged %PDFium_URL%
call gclient sync

: Checkout
echo on
cd %PDFium_SOURCE_DIR%
call git checkout %PDFium_BRANCH%
call gclient sync

: Patch
echo on
cd %PDFium_SOURCE_DIR%
Expand Down

0 comments on commit a4a154a

Please sign in to comment.