-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
49 lines (49 loc) · 1.12 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
dist: xenial
group: edge
stages:
- name: Tests
- name: Deployment
if: branch = master AND type = push AND fork = false
jobs:
include:
- stage: Tests
name: Frontend Tests
language: node_js
node_js: 12.16.1
cache: yarn
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install --frozen-lockfile
script:
- yarn build
- stage: Tests
name: Linting Tests
language: python
python: '3.8'
cache: pip
install:
- pip install pre-commit
script:
- pre-commit run --all-files
- stage: Deployment
name: Frontend Deployment
language: node_js
node_js: 12.16.1
cache: yarn
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install --frozen-lockfile
script:
- yarn build
deploy:
provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
local-dir: build
on:
- branch: master
- type: push