-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
66 lines (57 loc) · 1.64 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
language: node_js
os: linux
arch:
- arm64
- ppc64le
- s390x
node_js:
- '12'
notifications:
email: false
slack: 'hdampse:U1CJmoQ7s8a3wIZC0Wi3wWZ7'
addons:
chrome: stable
apt:
packages:
- sshpass
cache:
directories:
- ./app/node_modules
jobs:
include:
- stage: frontend-tests
before_script:
- cd app
- npm install
script:
- npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox
- echo "no backend / crawler / other tests specified"
- language: python
python: 3.7
before_install:
- cd etl/
- export PYTHONPATH="${PYTHONPATH}:${pwd}"
- python --version
install:
- pip install -r requirements.txt
script:
- python data_extraction/get_wikidata_items.py -d 1
- python data_extraction/get_wikipedia_extracts.py
- stage: deploy-to-staging
if: branch = staging AND type = push
before_script:
- cd app
- npm install
script:
- npm run build-locale
after_success:
- rsync -rltDvz --delete --rsh="sshpass -p ${SFTP_PASS_STAGE} ssh -o StrictHostKeyChecking=no -l ${SFTP_USER_STAGE}" ./dist/browser/* ${SFTP_USER_STAGE}@${STAGE_ADDR}:${SFTP_PATH_STAGE}
- stage: deploy-to-production
if: branch = master AND type = push
before_script:
- cd app
- npm install
script:
- npm run build-locale
after_success:
- rsync -rltDvz --delete --rsh="sshpass -p ${SFTP_PASS_PROD} ssh -o StrictHostKeyChecking=no -l ${SFTP_USER_PROD}" ./dist/browser/* ${SFTP_USER_PROD}@${PROD_ADDR}:${SFTP_PATH_PROD}