-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use yarn for UI build #100
Conversation
.travis.yml
Outdated
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3 | ||
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y -qq yarn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would've thought sudo apt-get install -y -qq yarn
should install all the dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm basing this off travis-ci/travis-ci#6720 (comment)
travis/build-all-in-one-image.sh
Outdated
@@ -10,7 +10,7 @@ echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG | |||
make build-all-in-one-linux | |||
|
|||
# Only push the docker container to Docker Hub for master branch | |||
if [ "$BRANCH" == "master" ]; then echo 'upload to Docker Hub'; else echo 'skip docker upload for PR'; exit 0; fi | |||
#if [ "$BRANCH" == "master" ]; then echo 'upload to Docker Hub'; else echo 'skip docker upload for PR'; exit 0; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just for testing, gonna upload the container to docker hub to make sure the UI works. Will uncomment later.
This works as intended; the containerized UI looks good. |
.travis.yml
Outdated
before_install: | ||
# Repo for newer Node.js versions | ||
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | ||
# Repo for Yarn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a link https://yarnpkg.com/en/docs/install-ci#travis-tab
Install yarn in travis and use it for the UI build