-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
106 lines (103 loc) · 4.83 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
os:
- linux
language: node_js
node_js: stable
dist: bionic
sudo: required
before_install:
- sudo apt-get install -y google-chrome-stable graphviz
- sudo apt-get install -y xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
addons:
sonarcloud:
organization: 'pytheas-tools'
token:
secure: 'fm3A7MJufehMUvlFqVxGSumGJvpvOflM1FtCb4VGLeAXnZ0jQwd8ccbkNd2d0tZZia8GAVyya9gcsU+OGU/VEuyRg6BkK4cPw2LOAtk7uEEccLj7/LRWQDEK0aBMrnL5tlgpEvPz+WZeivOXXkbVuDg79cOl7irYW5hCx9Ng7Lpxd0Ry/PATdichuAa4FaNVYTV5cEUpz3jVTUjmg+UxQuPKCrkTIqqGV+v1iwcWSNjr0jrepMEaydDakxctkTqxekn8vMLeoG7R3udbRTdMU5qJqrI+2pJYXo/5hRjrKhUHa3Pai9RtRxufe3jN6EA7lbjIF06fFmgkwVsLT1lx8xQnaYD/jNtprkrR83B1QmKgh+Vl/JwQK4PPlCFKPyRfQUqQkq6W0oxumaezBzzXdPIf2emOUqaQBNT2RRkwZcSLnYaCzmZr7uCNKUORRnCkmY7IezYc+C8RTyY0FFXCj7mRjDLYMC9qVR+FO+oKthiJ3sIFhBSD6Nf4nXIgO0gt6losvuWBdlmvdxyftBlq2d8svOe+6YIuDziGiXK/K1i4bn6dsGlJSn8Jv4fbyyOrfeMEG0YLyPNCVbx59jvn47htOcfQTawJKGWYuT1NdMyKOLn/8MCnEbc5pYHhtHj6TnBhFzMULi2UKcq+R1pJMF1qd0GjamvnjnSWM4bt514='
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
jobs:
include:
- stage: testing web components
install:
- npm install npm@latest -g
- cd packages/pytheas-components
- npm ci
script:
- npm run test
- stage: unit testing app
install:
- npm install npm@latest -g
- echo "\n**********\nBUILDING STATIC DEPENDENCIES\n**********\n"
- cd packages/pytheas-ui-static-dependencies
- npm ci
- npm run build:prod
- cd ../pytheas-ui
- npm ci
- mkdir output
- mkdir output/scripts
- npm run build-browser-dependencies
script:
- npm run test:unit
- sonar-scanner
- stage: e2e testing app
install:
- npm install npm@latest -g
- echo "\n**********\INSTALLING STATIC DEPENDENCIES\n**********\n"
- cd packages/pytheas-ui-static-dependencies
- npm ci
- echo "\n**********\nBUILDING WEB COMPONENTS\n**********\n"
- cd ../pytheas-components
- npm ci
- npm run build:prod
- echo -e "\n**********\nBUILD PROD APP\n**********\n"
- cd ../pytheas-ui
- npm ci
- mkdir output
- mkdir output/web-components
- mkdir output/scripts
- npm run build
- npm run copy-wc
script:
- npm run test:e2e
- stage: build prod app
install:
- npm install npm@latest -g
- cd packages/pytheas-components
- npm ci
script:
- echo "\n**********\nBUILDING STATIC DEPENDENCIES\n**********\n"
- cd ../pytheas-ui-static-dependencies
- npm ci
- echo "\n**********\nBUILDING WEB COMPONENTS\n**********\n"
- cd ../pytheas-components
- npm run build:prod
- cd ../pytheas-ui
- npm ci
- mkdir output
- mkdir output/web-components
- mkdir output/scripts
- echo -e "\n**********\nBUILD PROD APP\n**********\n"
- npm run build
- npm run copy-wc
- echo -e "\n**********\nBUILD DOC\n**********\n"
- cd ../pytheas-documentation
- npm ci
- npm run madge
- npm run docs:build
- cp -R src/.vuepress/dist ../pytheas-ui/output/contributors-documentation
- cd ../pytheas-ui
- npm run doc:code
- cp -R code-documentation ./output/code-documentation
- echo -e "\n**********\nDEPLOY\n**********\n"
- bash ./deploy.sh
branches:
only:
- develop
env:
global:
- GH_REF: github.com/pytheas-tools/pytheas.git
- secure: I/jqJ/T6X79mmeKdLxEBXBxX+nhf/nlYZ5ConuJ5s22unQt2pfbWoLe0bAPPawVQ0oK/DhQkVG7coKi7AsQWpOUqBu0j1vvNVbNn8w8F1p3n6bjPM9jPee4JTjOHjsMz8aUWzWq2uz9z118TwrCglep/2dz0qxt/8rfuvBJFah+xT4tZoT8TfUsK8bEz5gZvwlHuPCZIOfeWaEwSO8rIDgF4b9uiaGSSBNSjqAz/Wpr09Bty1bj90SNjYkRiBaUcGnlpuLZEZNEJwx72sZ+gRuAu4lta7/BqXFTj8reqIvUo8ZmkkJWQY1xRGotkbUA7R0nIlqcUemNDCVHukQEf+muTxa2EWjZMYcrox+W+0yIsSJSnMVWDFZznMZ317rctvml8uGG+VLJx7RExiOQBKlYbKaHe1wzeUo9uRQXy6YgAIKtWwaQkCGRPdhTipl9Kv7t0bSPhzPj2bIK4WNJCUN2Jwn4Ri8u+hgikEv4KnqEH+NMo7438uPPtkLniT7rBoOp+5dvZfvczoq9IbqwktMpq0CcoBygxca7bPCNUdZcj+ts19evwymi4rywfSgzo7yL3BM/tNTjrSopaNW3naNtZFf45cenDwydpi+yNKG6ERwcICFNbSuecME/aTo1YdT9ZUusuussFH8yY5gqo3L3n4igF+fQGWWEuiZVVsWM=