Skip to content

Commit

Permalink
Add proper ci script (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Apr 25, 2018
1 parent 27a6b96 commit b5d1d28
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: node_js
node_js:
- 6
- 8
notifications:
email: false
cache: yarn
before_install:
- npm install -g npm@5
- npm install -g yarn
- npm install -g greenkeeper-lockfile@1
- npm install -g create-cycle-app
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
script:
- create-cycle-app test-app --flavor $(pwd) --yarn
- cd test-app
- yarn run build
- yarn test
- cd ..
4 changes: 3 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ env.NODE_ENV = 'production';

const webpack = path.resolve(__dirname, '..', '..', '.bin', 'webpack');

spawn.sync(
const result = spawn.sync(
webpack,
['--config', path.join(__dirname, '..', 'configs', 'webpack.config.js')],
{ env: env, stdio: 'inherit' }
);

process.exit(result.status);
4 changes: 3 additions & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ const args = [
mochaArgs
].filter(Boolean);

spawn.sync(mocha, args, { env: env, stdio: 'inherit' });
const result = spawn.sync(mocha, args, { env: env, stdio: 'inherit' });

process.exit(result.status);

0 comments on commit b5d1d28

Please sign in to comment.