forked from ember-cli/ember-octane-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (80 loc) · 3.43 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
language: node_js
node_js:
- '10'
sudo: false
dist: trusty
addons:
chrome: stable
cache:
yarn: true
env:
global:
- APP_PATH="packages/@ember/octane-app-blueprint"
- ADDON_PATH="packages/@ember/octane-addon-blueprint"
- JOBS=1
branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+/
jobs:
fail_fast: true
include:
- stage: Quality
name: JS
install: cd $ADDON_PATH && yarn install --non-interactive
script: yarn lint:js
- stage: Quality
name: JS
install: cd $APP_PATH && yarn install --non-interactive
script: yarn lint:js
- stage: Tests
name: Generating an App
script: ./scripts/tests/test-app-blueprint.sh
- stage: Tests
name: Generating an Addon
script: ./scripts/tests/test-addon-blueprint.sh
###################################
# Auto-publish the npm packages
###################################
- stage: Publish Packages
name: Publish App Blueprint
if: tag IS present
node_js: 10
addons:
apt:
packages:
- jq
install: "( cd $APP_PATH && yarn install --non-interactive )"
script: cp README.md $APP_PATH/README.md && git add . && git commit -m"add readme" && cd $APP_PATH
deploy:
on:
tags: true
provider: npm
email: [email protected]
api_key:
secure: KBms6kydUUTuGD7XpWWBqbiijuylaz9HVGy484qnHAyHXk4LiLWlsIVkJkyE+YgbzJg4OxtJHbcf5K2yuJlBPKcrQV4NEa3Dw/NEJWS12PkBHERO3GT+3CaWdjYyd+x6WslstNxgvG3jp3uf9malPKZaZsK8K0h+eKXkaxUV+rKX+OIMWfI8ki7CPVsQkHcFfVrIq9nxrCdr3CUWbDs0Wju+aqcYyrsNwErmLY2OUgCKXWgMpqcOxVpaRKQhQwAin9ALDiQviBNVwvR7cqZCEoKWEW4PL3puQrzL8XbTA4hibyQM3GaetjJKlV3oLv0SX2I9ODcrUDp3l5iQQ8/Fbc+w97QpNwO+pCKNPI+GBGg1O+j5FcBBjSeIWHGu5Rn6vjbTzp27p2pTVTML3Ay1/ZzakKrlpMAttdHdsyN3n9N20CG5pVrLwElbYUCC3FWX6y4GLyEzVg7b9BAe3DDhO0oEFoHh+r9pBWrLbYdsIRDUp2PeYH1RMnAgd7FqNU8YScZ7mw9yhph2jOO96ZsdCZWqzYPUWsLIM54yT8eAvLkIgQkvg24G0ZakOKwamTjIUbjVDYhQhrviS0ZKO5bpUtZvp+vfrkLAqRzCZg/bAfk68wSWXN76KBkt+FP9Aoj40RcwJvxKZB77vX0rUm+V+v/ioKK/gkrG5+q96+anVUE=
after_deploy:
- cd $TRAVIS_BUILD_DIR && ./scripts/verify-publish.sh @ember/octane-app-blueprint
- stage: Publish Packages
name: Publish Addon Blueprint
if: tag IS present
node_js: 10
addons:
apt:
packages:
- jq
install: "( cd $ADDON_PATH && yarn install --non-interactive )"
script: cp README.md $ADDON_PATH/README.md && git add . && git commit -m"add readme" && cd $ADDON_PATH
deploy:
on:
tags: true
provider: npm
email: [email protected]
api_key:
secure: KBms6kydUUTuGD7XpWWBqbiijuylaz9HVGy484qnHAyHXk4LiLWlsIVkJkyE+YgbzJg4OxtJHbcf5K2yuJlBPKcrQV4NEa3Dw/NEJWS12PkBHERO3GT+3CaWdjYyd+x6WslstNxgvG3jp3uf9malPKZaZsK8K0h+eKXkaxUV+rKX+OIMWfI8ki7CPVsQkHcFfVrIq9nxrCdr3CUWbDs0Wju+aqcYyrsNwErmLY2OUgCKXWgMpqcOxVpaRKQhQwAin9ALDiQviBNVwvR7cqZCEoKWEW4PL3puQrzL8XbTA4hibyQM3GaetjJKlV3oLv0SX2I9ODcrUDp3l5iQQ8/Fbc+w97QpNwO+pCKNPI+GBGg1O+j5FcBBjSeIWHGu5Rn6vjbTzp27p2pTVTML3Ay1/ZzakKrlpMAttdHdsyN3n9N20CG5pVrLwElbYUCC3FWX6y4GLyEzVg7b9BAe3DDhO0oEFoHh+r9pBWrLbYdsIRDUp2PeYH1RMnAgd7FqNU8YScZ7mw9yhph2jOO96ZsdCZWqzYPUWsLIM54yT8eAvLkIgQkvg24G0ZakOKwamTjIUbjVDYhQhrviS0ZKO5bpUtZvp+vfrkLAqRzCZg/bAfk68wSWXN76KBkt+FP9Aoj40RcwJvxKZB77vX0rUm+V+v/ioKK/gkrG5+q96+anVUE=
after_deploy:
- cd $TRAVIS_BUILD_DIR && ./scripts/verify-publish.sh @ember/octane-addon-blueprint
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH