Skip to content

chore(travis): add config#13

Merged
adnasa merged 2 commits into
masterfrom
adnasa-travis-ci
Sep 4, 2018
Merged

chore(travis): add config#13
adnasa merged 2 commits into
masterfrom
adnasa-travis-ci

Conversation

@adnasa

@adnasa adnasa commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

Aight, this is my very first attempt to travis ci... ever! 😓

open question(s)

I simply chose nodejs 8, since there was no engine requirement in package.json. Shall we set this to nodejs10 (ref)

closes #1

Comment thread .travis.yml Outdated

script:
- npm run lint
- npm run test

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use yarn to run these scripts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

you got it

@montezume

Copy link
Copy Markdown
Contributor

I would be interested in moving to node 10... what do you think @emmenko @dferber90 ?

@adnasa

adnasa commented Sep 4, 2018

Copy link
Copy Markdown
Contributor Author

Shall we update the engine requirement first?

@montezume

Copy link
Copy Markdown
Contributor

@adnasa or just add one, I don't see any listed.

@emmenko emmenko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🙌

Comment thread .travis.yml
sudo: false
language: node_js
node_js:
- '8'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node 10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about this @adnasa ?

Comment thread .travis.yml
@adnasa

adnasa commented Sep 4, 2018

Copy link
Copy Markdown
Contributor Author

looks like netlify deployment failed when I set it to 10.8.0, will try with 10.5.0

@emmenko

emmenko commented Sep 4, 2018

Copy link
Copy Markdown
Member
2:44:15 PM: Installing NPM modules using Yarn version 1.3.2
2:44:16 PM: yarn install v1.3.2
2:44:16 PM: [1/5] Validating package.json...
2:44:16 PM: error @commercetools-frontend/ui-kit@1.0.0-beta.30: The engine "node" is incompatible with this module. Expected version ">=10.8.0".
2:44:16 PM: error Found incompatible module
2:44:17 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2:44:17 PM: Error during Yarn install
2:44:17 PM: Error running command: Build script returned non-zero exit code: 1

@emmenko

emmenko commented Sep 4, 2018

Copy link
Copy Markdown
Member

Keep the engine out for now

@adnasa

adnasa commented Sep 4, 2018

Copy link
Copy Markdown
Contributor Author

okay, thanks.
will update the lint command as you asked :)

@adnasa

adnasa commented Sep 4, 2018

Copy link
Copy Markdown
Contributor Author

config added, and lint command updated.. anything to add?

@montezume montezume left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👦 💵

@adnasa adnasa merged commit 201fa74 into master Sep 4, 2018
@adnasa adnasa deleted the adnasa-travis-ci branch September 4, 2018 13:16
@emmenko

emmenko commented Sep 4, 2018

Copy link
Copy Markdown
Member

We're using jest runners, so you can just do yarn run jest --projects jest.*.config.js.

Can you change to this for CI?

Also it still runs on node 8. Can you change it to 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup CI

4 participants