forked from BlueBrain/Brayns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
78 lines (75 loc) · 3.27 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
sudo: false
# https://docs.travis-ci.com/user/customizing-the-build/#git-submodules
git:
submodules: false
matrix:
include:
# Node
- language: node_js
node_js: 8
env:
- secure: "aD/NIIsuN9YrGMqOgJK0DsE1IB3t6cNfrhkehMiM76UdbvO1CoBuX5MlzUqJIGjU/TUzSh6wRnuYuh/g/jj31YkAXgLLq2ROkgB0xAQY0amko8P+7Jh8INH8zWtAxEA0HNksZKAfE2vXQdPSJ/axXFLKgWcC9S/wPKHrrClP6uJiMfX4qOZIunM/pob2cpwBgvBsNfzOcN1N0+SLLI5vwj/JmJaSvesVi5Oetf+myhy6aAavpVTYd65KbqeCTp1Ge6cnJWi0nuqUVoGrwHgyJ0lBxU2CCEzEf2iRabxoX6qeo7+wIH843TLBG4TirpwA6plh3Q06IKsJpiDFT/cCxQlbZgmu45CLX24bV6KFqdkAYW/geKOE7ck48fLT8HsjXBiLap7P/pLHWcf963TILlBYvFg9Nhe2Od63tYhlrTPBpjWM4GsgvHsj2ON9huBYaw/Nzkyl8kQKESMFOvEigpOQPMzTwNm2CWAAxML4t98IPpg5i4Mjy/thwpYezEjjw7e1FuyNePT5X0x0tCT4AQSb+MA/pkFPrqoDvt+CTyCzCGhgf4Ds1N2Dd5NTttiBee2lLJhjoXQosogBBPfgeQ7aBtS0OS0kBDaM7sDxINBNy+nUZAt+tC3pd1rE7BifOS6x9CBios1HP3V5LPMgLtnukPL+qX/+XFqed5lAyCI="
before_install:
- |
cd js
yarn install --pure-lockfile --non-interactive
script:
- yarn --cwd packages/sdk test:cov
- yarn --cwd packages/sdk build
- yarn --cwd apps/viewer test:cov
- yarn --cwd apps/viewer build
after_success:
- source ./scripts/set_brayns_npm_version.sh
deploy:
provider: script
# https://blog.travis-ci.com/2018-04-11-how_to_publish_node_js_packages_with_travis_ci_and_packagecloud
script: npm config set '//registry.npmjs.org/:_authToken' ${NPM_AUTH_TOKEN} && npm publish packages/sdk
skip_cleanup: true
on:
condition: $BRAYNS_CLIENT_VERSION != ''
branch: master
# Python 3.5
- language: python
python: 3.5
install:
- cd python
- pip install .
- pip install tox-travis
script:
- tox
# Python 3.6
- language: python
python: 3.6
install:
- cd python
- pip install .
- pip install tox-travis
script:
- tox
before_deploy:
- pip install twine
after_success:
- export BRAYNS_PY_DO_DEPLOY=`../scripts/check_version.py`
deploy:
provider: pypi
user: bbp.opensource
password:
secure: "LvvTFmcx2BoMjv22oI2vIHZ/pT8IbSEjBx0bMA+wcBJBbwX2LkGIwEX3r/U7PlnSL/E0blSVyWEkmu6jClYz7cd6VVQbEm0J2R3SPXo7BROt01pBbj6oHqLVr+wGf0gT7BVfKSc3m7NsjdKa3xpZyal9+WfzuE0ngyG8MOnyoVzyZqiBlKHHWeTiHgTiwhps+6rTvtzHnCSeI7pf2uWBDZtTeshUXDv1zWMOsvSlhR3KJzpxfw7sEMDMb0/GcNUDdRGb8+eHhVbjSGJiDEYJHQwN0Sg5LvvZhACzDckTHTcdwYnNlrvYH47n18pGoRGecIYtYof4GCd7kDHE9EokUmCHaa5OMkFFGzt6oRjpHvyYHEIhg6mON3sFgHq8To2h7Q6QBVZlRW4x3y7w6aKubIvnMiUqmeSilCEqmiaIcvV4KQxrtCxiAp98m98oc2r5uYprTB0fzrugquTSas0rLL+GPZTtNJqRqERwEweAPtik6jC96u2UQPoUcH9Si63Jf2bu0BAAlK2B+AAdspwXxEx1jjZBCau6QwlzBhsY3JhSaGYCWKBCcQ9rQxXjWKJs7Cyit2nQXOvkYC0R3SAsT+ijHnTskH+4oSULQ9vVAtA4ncGhvv0woaMpTc8HY1/zc5HNpk0XPvXVgg67LRilbz0UMTNb+zRl+K38q5TITOU="
on:
condition: $BRAYNS_PY_DO_DEPLOY != ''
branch: master
# Python 3.7
- language: python
# https://github.com/travis-ci/travis-ci/issues/9815#issuecomment-425867404
dist: xenial
sudo: true
python: 3.7
install:
- cd python
- pip install .
- pip install tox-travis
script:
- tox
notifications:
email:
on_success: never