-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
139 lines (135 loc) · 6.3 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
env:
global:
- secure: "SipMyYuxp088L7/YsW81BIJXgw3SmymTgl7GU2quTfpPEqraJEZhhB81V3fBMW47xvBHzjgCWeoMVySG4tJMBxLrkqHLN085qcGOBT/CcWcNMvenVhmac4XcYY0hxUwST5F5KCgNsG+I0w9XPe//Fl09883ndRxvtaCl0wLWLeCGICe5hx9/jfAdFbwgAAmu43mMk0BjGJFoJRzLPNrProvjeVbGEAEKsFTYYgxHnW1S4IHu2hFlrL+698PcCDM0ynR4Ov2YY6nKHHnyX/6S5cRXmbKalu85a+1/pxdFeci1UQfaYP2ecM3UjV+x6B+Ndg/ThnPXjbhzIKK8WiKxYywx2MvG6bORP6bMSzDzefYfgnQf/Eh1YYJoG5+P3MLzSszQf8E7C1j/RuRusmdO2A9V68fRIlQrUteKz/Q1ComQkNsPePBh+oTuZpL0jFeGUYlQ+5bwjH7pPw1a4OG9kvZXcwqzZJOEbspLUoQJL2m9AJI6LHr1Qfp6Pm44LPfO8JU7Z+Q9qxVqIUm8z4JYPVmJhBJiEDa/YmrRvABxbvGfRBbBCYlbXMV3bKBZZ+HnpJkSC6xTJXbjZv2uWAUy7rOkG4WPui8MiBaLQPh/8LPHL8XTTwAfIdhALzX40+LQXXYDz+3AZaO2d4v9AZ6cMLBXJClG126BR04JYEqBEqA="
matrix:
# sudo: required
include:
# test
- os: linux
language: node_js
node_js: 12
install:
- yarn install
before_script:
- yarn build
script:
- yarn test
after_script:
- echo "SUCCESS: Finished Test-Build"
# DeputyProfiles - Cron
- if: type IN (cron)
os: linux
language: node_js
node_js: 12
install:
- yarn install
before_script:
- yarn build
# Prepare git
- openssl aes-256-cbc -k "$travis_key_password" -d -md sha256 -a -in ./.travis/travis_key.deputyprofiles.enc -out ./travis_key
- echo "Host github.com" > ~/.ssh/config
- echo " IdentityFile $(pwd)/travis_key" >> ~/.ssh/config
- chmod 400 travis_key
- echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
# Clone git
- git clone [email protected]:bundestag/DeputyProfiles.git ./out/DeputyProfiles/
script:
# Scrape
- yarn start DeputyProfile ./out/DeputyProfiles/data
after_script:
# Push to Git
- cd ./out/DeputyProfiles
- git add -A
- git commit -a -m "Travis $TRAVIS_BUILD_NUMBER update"
- git push
after_failure:
- echo "FAILED Scraped DeputyProfiles | Pushed to Git"
after_success:
- echo "SUCCESS Scraped DeputyProfiles & Pushed to Git"
- if: type IN (cron)
os: linux
language: node_js
node_js: 12
install:
- yarn install
before_script:
- yarn build
# Prepare git
- openssl aes-256-cbc -k "$travis_key_password" -d -md sha256 -a -in ./.travis/travis_key.namedpolls.enc -out ./travis_key
- echo "Host github.com" > ~/.ssh/config
- echo " IdentityFile $(pwd)/travis_key" >> ~/.ssh/config
- chmod 400 travis_key
- echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
# Clone git
- git clone [email protected]:bundestag/NamedPolls.git ./out/NamedPolls/
script:
# Scrape
- yarn start NamedPoll ./out/NamedPolls/data
after_script:
# Push to Git
- cd ./out/NamedPolls
- git add -A
- git commit -a -m "Travis $TRAVIS_BUILD_NUMBER update"
- git push
after_failure:
- echo "FAILED Scraped NamedPolls | Pushed to Git"
after_success:
- echo "SUCCESS Scraped NamedPolls & Pushed to Git"
- if: type IN (cron)
os: linux
language: node_js
node_js: 12
install:
- yarn install
before_script:
- yarn build
# Prepare git
- openssl aes-256-cbc -k "$travis_key_password" -d -md sha256 -a -in ./.travis/travis_key.namedpolldeputies.enc -out ./travis_key
- echo "Host github.com" > ~/.ssh/config
- echo " IdentityFile $(pwd)/travis_key" >> ~/.ssh/config
- chmod 400 travis_key
- echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
# Clone git
- git clone [email protected]:bundestag/NamedPollDeputies.git ./out/NamedPollDeputies/
script:
# Scrape
- yarn start NamedPollDeputy ./out/NamedPollDeputies/data
after_script:
# Push to Git
- cd ./out/NamedPollDeputies
- git add -A
- git commit -a -m "Travis $TRAVIS_BUILD_NUMBER update"
- git push
after_failure:
- echo "FAILED Scraped NamedPollDeputies | Pushed to Git"
after_success:
- echo "SUCCESS Scraped NamedPollDeputies & Pushed to Git"
- if: type IN (cron)
os: linux
language: node_js
node_js: 12
install:
- yarn install
before_script:
- yarn build
# Prepare git
- openssl aes-256-cbc -k "$travis_key_password" -d -md sha256 -a -in ./.travis/travis_key.conferenceweekdetails.enc -out ./travis_key
- echo "Host github.com" > ~/.ssh/config
- echo " IdentityFile $(pwd)/travis_key" >> ~/.ssh/config
- chmod 400 travis_key
- echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" > ~/.ssh/known_hosts
# Clone git
- git clone [email protected]:bundestag/ConferenceWeekDetails.git ./out/ConferenceWeekDetails/
script:
# Scrape
- yarn start ConferenceWeekDetail ./out/ConferenceWeekDetails/data
after_script:
# Push to Git
- cd ./out/ConferenceWeekDetails
- git add -A
- git commit -a -m "Travis $TRAVIS_BUILD_NUMBER update"
- git push
after_failure:
- echo "FAILED Scraped ConferenceWeekDetails | Pushed to Git"
after_success:
- echo "SUCCESS Scraped ConferenceWeekDetails & Pushed to Git"