UNPKG

2.04 kB YAML View Raw
1language: node_js
2node_js:
3 - '8.9.4'
4before_script:
5 - npm install grunt-cli -g
6 - npm install codecov -g
7script:
8 - npm test
9 - npm run codecov
10 - npm run build:all
11branches:
12 only:
13 - master
14 - /^greenkeeper/.*$/
15before_deploy:
16 - git config --global user.email "maxgug@hotmail.com"
17 - git config --global user.name "koalyptus"
18 - export GIT_TAG=$(git describe --tags --abbrev=0)
19 - echo -n $GIT_TAG
20 - export NEW_GIT_TAG=$(node -p -e "require('./package.json').version")
21 - echo -n $NEW_GIT_TAG
22 - |
23 if [ $GIT_TAG != $NEW_GIT_TAG ]; then
24 git tag $NEW_GIT_TAG -am "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
25 fi
26deploy:
27 - provider: releases
28 on:
29 branch: master
30 api_key: $GITHUB_OAUTH_ACCESS_TOKEN
31 skip_cleanup: true
32 name: $NEW_GIT_TAG
33 - provider: s3
34 on:
35 branch: master
36 access_key_id: $AWS_ACCESS_KEY_ID
37 secret_access_key: $AWS_SECRET_ACCESS_KEY
38 region: $AWS_DEFAULT_REGION
39 bucket: www.tablefilter.com
40 skip_cleanup: true
41 local_dir: dist
42 - provider: s3
43 on:
44 branch: master
45 access_key_id: $AWS_ACCESS_KEY_ID
46 secret_access_key: $AWS_SECRET_ACCESS_KEY
47 region: $AWS_DEFAULT_REGION
48 bucket: www.tablefilter.com
49 skip_cleanup: true
50 local_dir: docs
51env:
52 global:
53 - secure: A1G8GvJkV0rjy7XCTVdOpTHy3xaoSZZAbMWhI+ikrqBqd8mRz+sB71FhRusouTcYdsT5VfF9Io2doS8LKAeP0TNC34Pp0uvjtsvarzn8a/oNEOuqR3Ub0ws2bmbZIZc+wOpgErKOj1H1QSJAUpd6ZjIuEAbOVXlhGBJz3zUCmcpRDh32CpFKC62oFWeGlvttxPciLLzBfKgkVKEGhPtdGP/xCHL1MCQptYVHZiXwWsaIQ5wHFO6KCVlRrPgdfOL+Yce3mT02iXH6ZjW6U6zA6vYQVQZVD873AkU5RmirYblW+jW1wdvu4UXI71lSH6Z3uXRVnrw1b0TsLVTjP9ZUbCtkTHtLbxYzeDjEukxKoCjpAppIhOtaNIxrdA8oKJAabQYp5X+QK6lkosy0zdT5u2B1+g8unZhsf0y//7lgLUe04iQ7sc1Q6AHiiEGtByaXg4BHNW53bUfKgNnbV4+IbXf8rz5wWOxL2/yWAU/GoiszjqRQfajAXCpSf6SyMjXjhhvQdeFn+Cz6FwdtaxH+tOIY0Hq9Gqy1xrLIkv/httd3O+AbhLrU1c/M0MwlFQue7GeJb7ZyF3KsK7bXvoz2dEqvzHd98NZXiQEqFXCIs77uVh4eZMoYrbEyrkOAgkUZNQYhHh9fuvfynJ/zgUvyA0v3GUvBebq3ybYKD/vqX7s=