-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (51 loc) · 2.1 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
sudo: false
language: node_js
node_js:
- '8'
env:
global:
- CC_TEST_REPORTER_ID=c0a3f723a87374b1af228112447f1058cf3537f0a468f56ca7263141d08a4ca4
cache:
yarn: true
directories:
- "$HOME/dist/cache"
- node_modules
- "$HOME/.npm/_prebuilds"
- "$HOME/.cache/yarn"
before_deploy:
- git config --local user.name "Michael J Feher"
- git config --local user.email "[email protected]"
- yarn build -t mat
- yarn build -t ios
- yarn build-ssr
- yarn build-pwa
#- zip -r ~/dist/cache/spa-mat.zip dist/spa-mat
#- zip -r ~/dist/cache/spa-ios.zip dist/spa-ios
#- zip -r ~/dist/cache/ssr-mat.zip dist/ssr-mat
#- zip -r ~/dist/cache/ssr-ios.zip dist/ssr-ios
- chmod +x bin/build_hook && ./bin/build_hook
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.10.1
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn
jobs:
include:
- stage: Tests
name: Unit Tests
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
script: npm test
after_script:
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json test/coverage/lcov.info
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: IsRZXD/d/LK/4AcG+GNgg+3bvn29jklYEyatYW7J+amHyC9p+p1wOaQTczj78k7hYBcsQAosziByvUOD7/xtVfiqukoLLo8o7I7RGaAMoOLaQEi/iYgCNRwrU+/al/q7dImZoDQD34ED1k2tyx2UubkwnGfCRsbjisKmwWQVHsfCnMBXlx5i62jEh3zZvxIp2KwXLuH6B1hx95Ryy5lmR8+reV5mySeRVC5QcoQgTBmnOraztSEcFq6AtpQxGaFuj+rSrqYdOYS8LLsLd4jFSUzN7Lfogi3wE20khiAyULIyGTG7wJP5BpoP1eLqdGBmPUmFsgD7662WzOfJtn82UpWs68F3F7WNocUXkzFuwrpDNCcwTSXwON/bhL1Gh2g/IhJBKFqFVY8vq0io2pC+38lfegk8pq8HLAybkSWTlcwiai5Mhy5CpMKUevV5C9Ws401zs5o/nVgLrmqC9f8NbikK0LoE6f7l95/QtVt6Q4qYYxrhYQ8Jn31Mprbyz9mAPFyrDwO2gIHbZlTKq2ZUhr2vfV45Bd5TxfFLiyUW40ocrYQWajbXuyNkAsCGr5sQuWdXmqs7jJGKu0g5fz5IGNQ7FqT/9HTQ8e3B8Aw+Z/bSAmsWveJ67HnjCI3mQ9POGGDDcMxE9a9flTns/svrlED7ZXsbJTRNrdXHJvuArjQ=
file_glob: true
file: /home/travis/dist/cache/*.zip
on:
branches: master