-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (45 loc) · 1.3 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
language: node_js
branches:
except:
- /^build-[0-9a-z\-]*/
services:
- docker
sudo: required
node_js:
- '8'
- '10'
env:
- DOCKER_COMPOSE_VERSION=1.21.2
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- npm ci
script:
- npm run lint
- npm run test
- npm run clean-test
- npm run coverage
after_success:
# CREATE GIT TAG
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
- echo -n $GIT_TAG > public/version
- git commit -m "Set build VERSION number" public/version
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet https://[email protected]/maxemiliang/musicSync $GIT_TAG > /dev/null 2>&1
before_deploy:
# create docs
- npm run generate-docs
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUBKEY # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: docs
on:
branch: master
node: 10