forked from mainmatter/ember-simple-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (72 loc) · 2.56 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
branches:
only:
- master
- /^\d+\.\d+\.\d+/ # npm version tags
language: node_js
node_js:
- "6"
addons:
chrome: stable
cache:
yarn: true
env:
secure: IVCX1o8nMAKAKxj2cXE6a2A8xmnt3Gj72ocyjT1vhZutEJ1z7wu3Xl/r6Q0fhlaux3+ZNz/KV6Lax6NW8KgC/Wo1+B5SF2RWMLGX+exglf5zUXT3wzaOq8LcEyQ7SGfsuovHa8ij3dMM4UWjl5lE3cM1M1KjxlekniUF9nFxZd4=
jobs:
fail_fast: true
allow_failures:
- env: SCRIPT="test:one ember-beta"
- env: SCRIPT="test:one ember-canary"
- env: SCRIPT=test:fastboot
include:
# runs linting and tests with current locked deps
- stage: 'Basic Tests'
name: 'Lint'
env: SCRIPT=lint
- name: 'Fixed Dependencies'
env: SCRIPT="test"
- name: 'Floating Dependencies'
env: SCRIPT="test"
install: yarn install --no-lockfile
# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: 'Additional Tests'
env: SCRIPT="test:one ember-1.12"
- env: SCRIPT="test:one ember-1.13"
- env: SCRIPT="test:one ember-2.0"
- env: SCRIPT="test:one ember-lts-2.4"
- env: SCRIPT="test:one ember-lts-2.8"
- env: SCRIPT="test:one ember-lts-2.12"
- env: SCRIPT="test:one ember-lts-2.16"
- env: SCRIPT="test:one ember-lts-2.18"
- env: SCRIPT="test:one ember-3.0"
- env: SCRIPT="test:one ember-beta"
- env: SCRIPT=test:node
- env: SCRIPT=test:fastboot
- env: SCRIPT="test:one ember-canary"
- stage: 'Deploy'
if: tag IS present
script: skip # usually you do not want to rerun any tests
deploy:
provider: npm
email: [email protected]
api_key:
secure: jFkWGvpCsvzavXk8MFgbk6CrYuiCUz2Hvzv/7BXOMiAesB38iyviDOetkUgqS9ZWR8O5Hx7qa5uRZUj7PElTbwF+QXjIfwOwQ1j9lcrsfEWCcLo/1oL8zPxt2jGg6O3DpAEeyExAZKstOHaJqYAWZKN42LA1CIuZfHebESRAUwk=
on:
tags: true
repo: simplabs/ember-simple-auth
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install
script:
- yarn run $SCRIPT
after_deploy:
- npm i -g now
- now deploy --token=$NOW_TOKEN --team=e-simple-auth && now alias --token=$NOW_TOKEN --team=e-simple-auth
- cd server && now deploy --token=$NOW_TOKEN --team=e-simple-auth && now alias --token=$NOW_TOKEN --team=e-simple-auth
notifications:
email: false
slack:
rooms:
secure: OOKD4ZksqzEBW/A3WRuOToODIxnDITqx+Esu7tdmmYPuQlMYgx4SUHv8j9OM9/ScFJiseeVGSkl45vJrHLLIITX9XSjO1RgiGZgw2heVujmGpF6CZNqvT6GsQuKIvMzmwF7IxuHdfV45Csr9Ou/Fg74TszR/4S2h4SOI4zhLg7A=