Ci improvements (#14600)

* Move livechat npm install to postinstall

* Clone snap repo with depth 1
pull/14614/head
Diego Sampaio 7 years ago committed by GitHub
parent 728e5c14e2
commit 482ae2d644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .circleci/config.yml
  2. 2
      .circleci/snap.sh
  3. 2
      .scripts/npm-postinstall.js

@ -118,9 +118,6 @@ jobs:
# rm -rf node_modules
# rm -f package-lock.json
meteor npm install
cd packages/rocketchat-livechat/.app
meteor npm install
cd -
- run:
name: Lint

@ -13,7 +13,7 @@ cd $PWD/.snapcraft
echo -e "Tag: $CIRCLE_TAG\r\nBranch: $CIRCLE_BRANCH\r\nBuild: $CIRCLE_BUILD_NUM\r\nCommit: $CIRCLE_SHA1" > buildinfo
# Clone launchpad repo for the channel down.
git clone -b $SNAP_CHANNEL git+ssh://rocket.chat.buildmaster@git.launchpad.net/rocket.chat launchpad
git clone -b $SNAP_CHANNEL --depth 1 git+ssh://rocket.chat.buildmaster@git.launchpad.net/rocket.chat launchpad
# Rarely will change, but just incase we copy it all
cp -r resources buildinfo snap launchpad/

@ -9,3 +9,5 @@ execSync('mkdir -p public/fonts/');
execSync('cp node_modules/katex/dist/fonts/* public/fonts/');
execSync('cp node_modules/pdfjs-dist/build/pdf.worker.min.js public/');
execSync('cd packages/rocketchat-livechat/.app && (meteor npm install || npm install) && cd -');

Loading…
Cancel
Save