Skip to content

Commit 2b4df21

Browse files
committed
Update CI configuration
1 parent bfa4031 commit 2b4df21

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ install:
3636

3737
script:
3838
- test $MD_ONLY && echo "Skipped!" || yarn lint:js
39+
# Typecheck and compile the addon, then nuke the TS source so we're testing the code we would publish
40+
- test $MD_ONLY && echo "Skipped!" || yarn ci:prepare
3941
# Usually, it's ok to finish the test scenario without reverting
4042
# to the addon's original dependency state, skipping "cleanup".
4143
- test $MD_ONLY && echo "Skipped!" || yarn ember try:one $EMBER_TRY_SCENARIO --skip-cleanup

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ cache:
2727
test_script:
2828
# Output useful info for debugging.
2929
- yarn versions
30+
# Typecheck and compile the addon, then nuke the TS source so we're testing the code we would publish
31+
- cmd: yarn ci:prepare
3032
- cmd: yarn ember try:one defaults
3133

3234
# Don't actually build.

config/ember-try.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
useYarn: true,
3-
command: 'ember test && yarn nodetest',
3+
command: 'yarn ci:test',
44
scenarios: [
55
{
66
name: 'defaults',

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"lint:js": "eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests",
2828
"start": "ember serve",
2929
"test": "ember test",
30+
"ci:prepare": "yarn prepublishOnly && rimraf ts",
31+
"ci:test": "ember test && mocha --recursive js/tests",
3032
"test:node": "mocha -r register-ts-node 'ts/tests/**/*.{ts,js}'",
3133
"test:all": "ember try:each",
3234
"prepublishOnly": "yarn tsc --project ts --noEmit false",

0 commit comments

Comments
 (0)