UNPKG

1.49 kBYAMLView Raw
1language: node_js
2node_js:
3 - "12"
4
5addons:
6 chrome: stable
7
8branches:
9 only:
10 - master
11 - beta
12 - release
13 - next
14 # release branches
15 - /^(?:release|lts)-\d+-\d+$/
16 # npm version tags
17 - /^v\d+\.\d+\.\d+/
18
19cache:
20 yarn: true
21 directories:
22 - $HOME/.npm
23 - $HOME/.cache # includes bower's cache
24
25stages:
26 - basic test
27 - additional tests
28 - name: deploy
29 if: type IN (push) AND branch = release
30
31jobs:
32 include:
33 - stage: basic test
34 name: Basic Tests
35 script:
36 - yarn lint
37 - yarn test
38
39 - stage: additional tests
40 name: Node.js 8
41 node_js: 8
42
43 - name: Node.js 10
44 node_js: 10
45
46 - name: Node.js 12
47 node_js: 12
48 script:
49 - yarn test:cover
50 after_success:
51 - .travis/codecoverage.sh
52
53 - env: EMBER_CLI_ENABLE_ALL_EXPERIMENTS=true
54 - env: EMBER_CLI_PACKAGER=true
55 - env: EMBER_CLI_MODULE_UNIFICATION=true
56 - env: EMBER_CLI_DELAYED_TRANSPILATION=true
57 - env: EMBER_CLI_SYSTEM_TEMP=false
58
59 - stage: deploy
60 name: Publish API Docs
61 script: skip
62 deploy:
63 provider: script
64 script: ./.travis/deploy.sh
65
66before_install:
67 # prevent the npm loading indicator
68 - npm config --global set spin false
69
70 # travis currently includes yarn v0.17.8 (20170705)
71 # this isn't new enough for our use of --non-interactive
72 - curl -o- -L https://yarnpkg.com/install.sh | bash
73 - export PATH=$HOME/.yarn/bin:$PATH
74
75script:
76 - yarn test:all