-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
55 lines (52 loc) · 2.48 KB
/
.travis.yml
File metadata and controls
55 lines (52 loc) · 2.48 KB
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
language: node_js
node_js:
- "14"
# to generate env.global.secure run:
# travis login --com --github-token [https://github.com/settings/tokens]
# travis encrypt --com GH_TOKEN="[https://github.com/settings/tokens]" -r imazzine/cli
env:
global:
- secure: "k4p2WMwzCLQBZQwUX5ydPI8Ks7YuaSl+oj85784AnnBz+QKOSfwE+Cw+MRgbdoQo3Xg7aLo5aVRyjLCtwWQRZupij+hUhruw8cwFGVWCOBAikLyj9q9TOZL6/ZA8W3fVWWofpCFmnG1zQ7i/ls4XlzTm9zMuH/ioU4NniyQZkr2r7o5N/kEhJgNb/GMHpnynw16zeUVOnZ1qtVj41aY/sneS9XDVUBk8rDd4MrxR2muKHfLa/e+y2MREtHthVqALklh0R1S9daYg1c14t6tNQCH9pf96hsAFHSenMWDOOt+fPDBQjhSPBSFAEbK+BlXXmNCzmS1jARDqnAH2BpSjgGuB9qjOphJFsOauRKgww4yppoo0SIdTM+1KtvIWQExjxE27/sQvGyoJjkq8jICGhLNVoLpbrctB5v2b2CQPvL0sRbu21QMyL9B5MUpfl91+/OnkLhlQlDK+SgL7VtCzBy/VrvhcpCBJ1O26pJtp0FT/trMCI3eBL+9OCVeTvj1bqzRBnNnN3s4r62/haGZr1QnsIxrsKpIPCwwJpPSlT+FuXbtlQjY0Xvtf+RocOQP4q2xDNx64sZb+EM96IaHvNPU4Q8cuxyw6q+d4nN4y+JrvtrMX5b3+gcY59YcEIRPsSG8P2H3A7nREImRwTDuXGBQ4K8GdVURqbDui5rd3oyo="
services:
- docker
before_install:
- docker pull node:14-alpine3.10
install:
- mkdir coverage
- npm i
- docker build -t zz:cli-test .
script:
- docker run -v "$(pwd)"/coverage:/cli/coverage -t zz:cli-test
- ./node_modules/.bin/coveralls < ./coverage/lcov.info
before_deploy:
# This doesn't work for updating master, but could be a working
# solution for gh_pages: https://gist.github.com/willprice/e07efd73fb7f13f917ea
# - git config --global user.email "travis@travis-ci.org"
# - git config --global user.name "Travis CI"
# - git fetch --depth=1 https://github.com/imazzine/cli.git refs/heads/master:refs/remotes/origin/master
# - git checkout origin/master
# - npm version $TRAVIS_TAG --no-git-tag-version
# - git add ./package.json ./package-lock.json
# - git commit -m "Bump version to $TRAVIS_TAG"
# - git remote set-url origin https://${GH_TOKEN}@github.com/imazzine/cli.git
# - git push origin origin/master
# This works fine for updating master, but disbled due to decision
# to use `npm version $version` and `git push origin master --tag`
# from the local dev environment.
# - mkdir ./updates
# - cd ./updates
# - git clone https://${GH_TOKEN}@github.com/imazzine/cli.git cli
# - cd cli
# - git fetch
# - git checkout master
# - npm version $TRAVIS_TAG --no-git-tag-version
# - git add ./package.json ./package-lock.json
# - git commit -m "travis-ci - bump version to $TRAVIS_TAG"
# - git push origin master
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: true