-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.02 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
language: node_js
node_js:
- "10"
env:
- PYTHON_VERSION=3.6
cache:
directories:
- data
before_install:
- pyenv global $PYTHON_VERSION
- pip3 install --user pipenv
- mkdir -p data
#- if [ ! -f data/party_compare.json ]; then
# cd vendor/MyRiksdag;
# ./get_data.sh;
# python3 -m pipenv install;
# python3 -m pipenv run python3 save_dataframe.py;
# python3 -m pipenv run python3 parties.py;
# mv party_compare.json parties.json valkretsar.json ../../data;
# fi
#- cp data/* src/assets
install:
- npm install
script:
- npm run build --prod # --base-href="/MinRiksdag"
# - npm test
before_deploy:
- true
#- sed -i 's/base href="\/"/base href="\/MinRiksdag"/g' dist/minriksdag/index.html
#- sed -i 's/src="/src="\/MinRiksdag\//g' dist/minriksdag/index.html
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: false
local-dir: dist/minriksdag
target-branch: master
on:
branch: develop