forked from navikt/aksel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 850 Bytes
/
.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
language: node_js
node_js:
- "10.13.0"
before_install:
- export TZ=Europe/Oslo
install:
- npm install
before_script:
- npm run checkversions
- npm run lint
- npm run postinstall
script:
- npm run build
before_deploy:
- npm run build-guideline-app
- git config --global user.email "[email protected]"
- git config --global user.name "navikt"
deploy:
- provider: script
skip-cleanup: true
on:
branch: master
script:
- git checkout master && git remote set-url origin https://Lillebo:[email protected]/navikt/nav-frontend-moduler.git && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc && npm run lernapublish
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
on:
branch: master
keep-history: true
local-dir: "guideline-app/dist"