forked from bugy/script-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (80 loc) · 5.18 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
if: tag IS blank
sudo: required
dist: focal
language: node_js
node_js:
- '15'
cache:
directories:
- web-src/node_modules
addons:
chrome: stable
env:
global:
- OWNER=${TRAVIS_REPO_SLUG%/*}
# GITHUB_TOKEN
- secure: GtWCiMPNz3MDDTvXqaVsgZBvlxYRZuTY6sUEhWTL37zJZHgRLlxTCTD27hHZp2P4B6G6KGV/0iEvMYxqzo6jMrzcEnt7TlGetteqI18dhV1dIQGH6uy8Y/PktkK2g2FuJeGV3FRK4+a21v6zzSuUaFa26k97mPapa4LS83XXj7rc13ll23HhhtObVF/a1n3U0Xwe4FkdoxbKlecJUnNujESxFk4xQl4N1tFv15fldDlFq0XWs26eEp3LU/n7wkMzbg9WEqPvDeaYlvir9VpvcYWpVvf8Uz+wpvW1jnE2R6bK1TDv5BNzQwbf2JtN284yZ8I1nwZtOJkc1RUr5wUFxCD0p8tc30sAlKemI385v2t1ccoBYMwH8LHFIUoSXoolHZBsnZeADqpo3a0d8hVFWv4AcxC27Q6SfMCltl0+ogAoQ7wVfkRT++044p415Ar4raEqIkqTm64FaRNMS0v2y5mS2634PMSGMRnK+NBrWz1yFKxsiuPKypIWygtrJ4pyiL2yPBZupnCluEgqva3q6AmMDlNuSUmcTEnCRGB01U2if6/oSEgISH1VK2lsRSxuoG5dFFuezwv90YENh/7pw0/hgge7EOse6OzDsU3uNRWcTuXF7eEBhjM1wBHWHlaAwV9vfHMZX4sHWP4R4CZhPjVEPRz6HPEg1tFCs2EvkuI=
# DOCKER_USER
- secure: 0AUrT+5xg+JGjAeZQfe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sEFt0CchPQAOQ09iqIBfbF3WHrVy1jqJLwVQVbt0bZR6h2d1eGEysGF2saSEL4wMlziZfKP2aEMuVwVPgLJzt3AeoMib2tCAcXOfV1kF/lsbib3gCR0Amgb1GG3MUulAPmrwGxlwIQJuNcErMrWvl4QpTuK8/uOHBMqURCQLJLHrrYKTLzgrmbUs+7+ugqt35/hYdEZEV4lqs65Ty35eytA7zOOHR31x7k3gPx/MZyuuBHMXL8vrw1VQpDCgClp0TiT3FPJGgjf2BmkJADaAgIn+9DdxGuZrlYDorbLEvtSkGkilobL+m7WS3STqyzM7i1+MpYNMlJO+7KyXPC+RxLBsC8j4neo8SXnFZxWC83tVvMFnWXXnHb8i2wnW3E5PpB3I3ptmEsaWMb18uQa0j/G4wAKzjrxGZjWiu7goEIFKOfMPrFRj3F2uifJnTO3e/TnoKJhkAPxOkNhF6AACkhNZ9Z41Gkvav/upZxBoz7ojOoTH4Tn+KyVCMpa90wzQGvdaMuSw/+0Uf80piPO/GYriiF0pAI4yHfm9+SqtmjRtItgp7Nk3fXjYOY3tKL8jBlEUYMItMped6mYTW4SC/d2ib0xyxSNISyCZKRWKyV3rbAr6F15TVZUT+kFvBTtc0=
- PATH=$HOME/.local/bin:$PATH
before_install:
- sudo apt-get -y install python3-pip python3-setuptools apache2-utils python3-venv
chromium-chromedriver
install:
- sudo pip3 install -r requirements.txt
- sudo pip3 install pyasn1 --upgrade
- sudo pip3 install ldap3 parameterized bcrypt
- sudo pip3 install requests --upgrade
- sudo pip3 install awscli
- cd web-src
- npm install
- npm install allure-commandline --save-dev
- cd ..
- python3 -m venv e2e_venv
- e2e_venv/bin/pip install -r src/e2e_tests/requirements.txt
before_script:
- cd src
# - python3 -m unittest discover -s tests -p "*.py" -t .
- cd ../web-src
- npm run test:unit-ci
- cd ..
script:
- python3 tools/build.py
- tools/run_e2e_tests.sh
after_script:
- tools/report_allure.sh
before_deploy:
- |-
if ! [ "$BEFORE_DEPLOY_RUN" ]; then export BEFORE_DEPLOY_RUN=1;
. tools/add_git_tag.sh
fi
deploy:
- provider: releases
name: dev
api_key: "$GITHUB_TOKEN"
file: build/script-server.zip
prerelease: true
overwrite: true
skip_cleanup: true
on:
branch: master
- provider: releases
name: "$(unzip -qc build/script-server.zip version.txt)"
api_key: "$GITHUB_TOKEN"
file: build/script-server.zip
skip_cleanup: true
on:
branch: stable
- provider: script
script: tools/deploy_docker.sh
skip_cleanup: true
on:
tags: false
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^stable|master$"