forked from plgd-dev/hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (36 loc) · 919 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: generic
dist: bionic
services:
- docker-bionic
jobs:
include:
- stage: test
name: "Test"
if: type = pull_request
script:
- make test
- stage: test_publish
name: "Test & Publish"
if: (branch = master OR tag IS present) AND type != pull_request AND commit_message !~ \[doc\]
script:
- make test
- bash <(curl -s https://codecov.io/bash)
- echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- make push LATEST_TAG=$TRAVIS_TAG
- stage: docs
name: "Documentation"
node_js:
- lts/*
install:
- yarn install
script:
- yarn docs:build
deploy:
provider: pages
skip_cleanup: true
local_dir: dist
github_token: $GITHUB_TOKEN
keep_history: true
fqdn: plgd.dev
on:
branch: master