-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
69 lines (57 loc) · 2.79 KB
/
.travis.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
language: python
python:
- '3.6'
# Used to properly name build artifacts
env:
global:
- ARTIFACT_VER="`git describe --tags`"
- ARTIFACT_NAME="posh-docsets-$ARTIFACT_VER.zip"
- MOZ_HEADLESS=1
- FIREFOX_PATH="`which firefox`"
addons:
firefox: latest
chrome: stable
deploy:
provider: releases
api_key:
secure: ZkANjBeq7LNuteAD9LsjOaOXIAHI8Wof6Vn+CkWq+kd7sW2ymjPrucPLEoHYeWrcJcuL67C7C2LXvl30IDaBPrBQbcoAJ2vAcPsK2iIRZxqL2FSp8CpCO1BB64gYqJ+6FZ9ZHrYNfAQNhBGiuaT7YzxBF6qP1ODy8ofrSpRauQMssPV28CRQQ9vek3um0QsAth/FtcUP7je5/8IImZDsxzFYDsSTn2MjnrtCc7x9EEuIel59b+1Cw5k6oLzHQP1IIXmyt2AvMI2v/Qvr/FiByg49vM0Kb8rdqsFlx37MaORY5jolpuL0iND5SuTLNsdC4r6yfyp4bLg9kG0VaevU9QK0mYqD8VQIikE8mMsIVLc1jC6tzrK8A5rIZwRo8Ug7We05TEUssidqzXImMy1AYTPSBvoM1iuAYdEewncOCRqeFrZpsD52YD9gp9LqsTVWJ/iV0UnXLg6owgrRrE8Os/vvb3rK4c7ev2UcT0//lJutmg4E0WAtOtI0d4FhGvaPFh8GVmdTwt38cJgsVcaDD1ATUB03vlafT2LTnbaSCmP9BYB+2Sc3Ml3nRcCTjguUaNX6goGr0G7uiCqo3Eyf9NRaKPFd5IYHMKqDHf1z1JSDp3/hPrzO7RtbW6iB96SjCnBXK8ddg42oG7d4dRlbAmQidS1a3cWy34ddwnlxlaE=
file: $ARTIFACT_NAME
skip_cleanup: true
all_branches: true
on:
repo: lucasg/powershell-docset
tags: true
addons:
artifacts:
# ⋮
paths:
- $(ls *.zip | tr "\n" ":")
notifications:
email:
recipients:
on_success: never # default: change
on_failure: always # default: always
install:
- pip install selenium requests bs4
before_install:
# dynamically resolve the correct chromedriver version to install from chrome's version
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
- wget "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- export PATH=$PATH:$PWD/
script:
- mkdir -p Powershell
- python posh-to-dash.py --temporary --output=Powershell/versions/7.1/Powershell.tgz --version=7.1
# - python posh-to-dash.py --temporary --output=Powershell/versions/5.1/Powershell.tgz --version=5.1
# - python posh-to-dash.py --temporary --output=Powershell/versions/5.0/Powershell.tgz --version=5.0
# - python posh-to-dash.py --temporary --output=Powershell/versions/4.0/Powershell.tgz --version=4.0
# - python posh-to-dash.py --temporary --output=Powershell/versions/3.0/Powershell.tgz --version=3.0
- cp static/icon.png Powershell/icon.png
- cp static/[email protected] Powershell/[email protected]
- cp Powershell/versions/7.1/Powershell.tgz Powershell/Powershell.tgz
- cp static/docset-template/README.md Powershell/README.md
- python static/docset-template/create-versioned-docset-json.py --output=Powershell/docset.json --version=$ARTIFACT_VER
- zip -r $ARTIFACT_NAME Powershell