-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
97 lines (91 loc) · 3.82 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
environment:
matrix:
# # For Python versions available on Appveyor, see
# # https://www.appveyor.com/docs/windows-images-software/#python
# # The list here is complete (excluding Python 2.6, which
# # isn't covered by this document) at the time of writing.
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
#init:
#- ps: Write-Output "Python $Env:PYTHON_VERSION $Env:PYTHON_ARCH from $Env:PYTHON"
install:
- ps: cat ".\TheKnight\the-knight-thumbnail.txt"
- ps: $ENV:PATH="C:\Python38-x64;C:\Python38-x64\Scripts;$ENV:PATH;"
- ps: C:\Python38-x64\python.exe -m pip install --upgrade pip
- ps: python --version
- ps: pip --version
- cinst pandoc
- REM cinst lame
- SET WANTTHES=1
- SET WANTPREM=1
- copy LameExe/lame_v3.100.exe
- rename lame_v3.100.exe lame.exe
#- dir
- cinst sox.portable
- pip install -U pyenchant #for spelling
- python -m pip install gTTS
- IF "%WANTTHES%" == "1" echo pip install -U nltk > runme.bat #for theasurus
- IF "%WANTTHES%" == "1" echo python -m nltk.downloader all >>runme.bat #for theasurus *** VERY SLOW ***
- IF "%WANTTHES%" == "1" call runme.bat > nltk_downloader.log 2>&1 #for theasurus *** VERY SLOW ***
- IF "%WANTPREM%" == "1" dotnet build PremiumAudioBookSdk\TomThumbPremiumAudioBook\TomThumbPremiumAudioBook.sln -c Release #limited plan, bit slow
build: false
test_script:
- ps: .\topdf.ps1
# - ECHO Possibly making the premium book
# - ps: cat ".\Croconocerous\croco_on_mostly_blank_except_some_grass_man.txt"
# - IF "%WANTPREM%" == "1" dotnet run --project PremiumAudioBookSdk\TomThumbPremiumAudioBook\TomThumbPremiumAudioBook\TomThumbPremiumAudioBook.csproj -- %prem% PremiumAudioBookSdk\TomThumbPremiumAudioBook\TomThumbPremiumAudioBook\template-ssml.xml audio The-Return-of-Tom-Thumb-for-audio.txt
# - dir audio
# - copy audio\The-Return-of-Tom-Thumb*.mp3 .
artifacts:
- path: Chapter-*-Spelling.txt
name: spelling-errors
type: file
- path: Chapter-*-Words.txt
name: word-matix
type: file
- path: The-Return-of-Tom-Thumb*.epub
name: is_book_yeah
type: file
- path: The-Return-of-Tom-Thumb*.md
name: is_book_yeah_md
type: file
- path: The-Return-of-Tom-Thumb*.txt
name: is_book_yeah_txt
type: file
- path: The-Return-of-Tom-Thumb*.html
name: is_book_yeah_html
type: file
- path: The-Return-of-Tom-Thumb*.mp3
name: is_book_yeah_mp3
type: file
- path: The-Return-of-Tom-Thumb*.mp3.log
name: is_book_yeah_mp3_log
type: file
- path: The-Return-of-Tom-Thumb-with-music*.mp3
name: is_book_yeah_mp3_w_music
type: file
- path: A_Croconossorus_Tale.mp3
name: is_croconossorus_real
type: file
- path: testymctestface.mp3
name: testy_mc_testface
type: file
on_success:
#- cat ".\Croconocerous\croco_on_mostly_blank_except_some_grass_man.txt"
- git clone https://github.com/PunkUnicorn/The-Return-Of-Tom-Thumb-Redirect-Static-Page.git
- cd ./The-Return-Of-Tom-Thumb-Redirect-Static-Page
- git config --global credential.helper store
- ps: Add-Content "$($env:USERPROFILE)\.git-credentials" "https://$($env:pushback):[email protected]`n"
- REM ./getindex.cmd
- cmd: copy ..\The-Return-of-Tom-Thumb.html .\public\index.html
- cmd: copy ..\The-Return-of-Tom-Thumb.epub .\public\
- ps: Write-Output "$($env:USERPROFILE)\.git-credentials"
- cmd: git config --global user.email "[email protected]"
- cmd: git config --global user.name "Script"
- git add ./public/index.html
- git add ./public/The-Return-of-Tom-Thumb.epub
- cmd: echo Auto update %APPVEYOR_BUILD_NUMBER%
- cmd: git diff-index --quiet HEAD || git commit -m "Auto update %APPVEYOR_BUILD_NUMBER%"
- cmd: IF "%APPVEYOR_ACCOUNT_NAME%" == "PunkUnicorn" git push
- cmd: IF NOT "%APPVEYOR_ACCOUNT_NAME%" == "PunkUnicorn" echo WHOS AWESOME?? YOUR AWESOEME!!!