-
-
Notifications
You must be signed in to change notification settings - Fork 650
/
.travis.yml
100 lines (93 loc) · 2.81 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
language: node_js
node_js:
- '10'
sudo: false
dist: trusty
env:
global:
- secure: K5sRZBHXcHoYfpYEul1tcK2hOp9QMV/T8xmfj1q20AKzw/+ovbsp+Pdb+PbKFr5vP4eN0ISAeHU3nseMGD9tW6BI/Jf1wW4r7qvGch9eH5v1fpAn7Xxm4AqxusxNck7j4uuo720J5nqioZPUjY5ynlgF0iuGJKjx3YVP7t8W4HQ=
- secure: NbSFG5O6U/6gBMG42vNoRY7Vt0TrDCGunM6MAsTENoRSAN5JFJ1Ne5HfSmOV4hyT63rSTUbNT1zBmqHCfUpZFp+ynVTS3Fs6jv6qgZSZm6l3k5SW1ZGFbDUjxCWuX2lg6n6dV2LyLTnnONa/U/OAb4FkceW9MeKVNjPNv/uYdEA=
addons:
chrome: stable
code_climate:
repo_token:
secure: "Qg05d4W5BfhbxXy9E9M8ACo2ULSs6tGL5We3pTCAH+smnCKKjXv5Bl+Tu7fC6Cup15LchVUGOxJ/RqXRWV3YEnwqYYZohj0EZANKedLfI8efFXlY1aIs6g29DbWzoCVbG8EczcNY7thakYzW37xkua3GdywH2s7l384bjCOsVDw="
cache:
yarn: true
before_install:
- yarn global add greenkeeper-lockfile@1
install:
- yarn install --ignore-engines
jobs:
include:
- stage: test
before_script:
- greenkeeper-lockfile-update
script:
- yarn test:ci
after_script:
- greenkeeper-lockfile-upload
- yarn rewrite-paths
- codeclimate-test-reporter < coverage/lcov.info
- stage: npm release
script:
- yarn build
# Identifies `a.b.c-xxx.n` tags as pre-releases, and `a.b.c` as stable releases
before_deploy: |
function npm_dist_tag() {
if [[ "$TRAVIS_TAG" = *"-"* ]]; then
echo "next"
else
echo "latest"
fi
}
deploy:
provider: npm
tag: $(npm_dist_tag)
email: rwwagner90@gmail.com
skip_cleanup: true
api_key:
secure: "qmXLSbGcujfLg8h+cJFjJtrEBeWGqd1CdhOex3TOCz93BrJUQf7he66HCBJaJ178qEYTnw4WKjjlcfbYO29H88Z+jnrS5KJydmRg0D3rkPSxcD8TMK3d8vRUTDl+UubuqPnN8jG4IqGfpM1z7WPSN1WSTjFK648S261bK7w88JY="
on:
branch: master
tags: true
repo: shipshapecode/shepherd
after_deploy: |
if [ "$(npm_dist_tag)" == "latest" ]; then
npm dist-tag rm shepherd.js next || true
fi
- stage: github releases
script:
- yarn build
# Identifies `a.b.c-xxx.n` tags as pre-releases, and `a.b.c` as stable releases
before_deploy: |
function gh_prerelease() {
if [[ "$TRAVIS_TAG" = *"-"* ]]; then
echo true
else
echo false
fi
}
deploy:
provider: releases
api_key: $GH_TOKEN
file_glob: true
file:
- dist/css/*
- dist/js/*
skip_cleanup: true
prerelease: $(gh_prerelease)
on:
tags: true
- stage: gh-pages release
script:
- yarn build
before_deploy:
- git add -f --all dist/
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_TOKEN
keep-history: true
on:
branch: master