Skip to content

Commit

Permalink
declutter travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sing-Li committed Dec 4, 2015
1 parent e46b226 commit 868a091
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
19 changes: 19 additions & 0 deletions .sandstorm/buildrc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -euo pipefail


cd /tmp
spk init -p3000 -- nothing
export SANDSTORM_ID=$(grep '\sid =' sandstorm-pkgdef.capnp)
cd $TRAVIS_BUILD_DIR
export METEOR_WAREHOUSE_DIR="${METEOR_WAREHOUSE_DIR:-$HOME/.meteor}"
export METEOR_DEV_BUNDLE=$(dirname $(readlink -f "$METEOR_WAREHOUSE_DIR/meteor"))/dev_bundle
cd /home/vagrant && tar zxf ./Rocket.Chat.tar.gz
rm ./Rocket.Chat.tar.gz
cd /home/vagrant/bundle/programs/server && "$METEOR_DEV_BUNDLE/bin/npm" install
cd $TRAVIS_BUILD_DIR/.sandstorm
sed -i "s/\sid = .*/$SANDSTORM_ID/" sandstorm-pkgdef.capnp
mkdir -p /home/vagrant/bundle/opt/app/.sandstorm/
cp /opt/app/.sandstorm/launcher.sh /home/vagrant/bundle/opt/app/.sandstorm/
sed -i "s/\spgp/#pgp/g" sandstorm-pkgdef.capnp
spk pack $TRAVIS_BUILD_DIR/rocket.chat.latest.spk
16 changes: 1 addition & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,8 @@ script:
- cp ../build/Rocket.Chat.tar.gz /home/vagrant
- cd .travis
- sh ./namefiles.sh
- cd /tmp
- spk init -p3000 -- nothing
- export SANDSTORM_ID=$(grep '\sid =' sandstorm-pkgdef.capnp)
- cd $TRAVIS_BUILD_DIR
- export METEOR_WAREHOUSE_DIR="${METEOR_WAREHOUSE_DIR:-$HOME/.meteor}"
- export METEOR_DEV_BUNDLE=$(dirname $(readlink -f "$METEOR_WAREHOUSE_DIR/meteor"))/dev_bundle
#- meteor build --directory /home/vagrant/
- cd /home/vagrant && tar zxf ./Rocket.Chat.tar.gz
- rm ./Rocket.Chat.tar.gz
- cd /home/vagrant/bundle/programs/server && "$METEOR_DEV_BUNDLE/bin/npm" install
- cd $TRAVIS_BUILD_DIR/.sandstorm
- sed -i "s/\sid = .*/$SANDSTORM_ID/" sandstorm-pkgdef.capnp
- mkdir -p /home/vagrant/bundle/opt/app/.sandstorm/
- cp /opt/app/.sandstorm/launcher.sh /home/vagrant/bundle/opt/app/.sandstorm/
- sed -i "s/\spgp/#pgp/g" sandstorm-pkgdef.capnp
- spk pack $TRAVIS_BUILD_DIR/rocket.chat.latest.spk
- sh ./buildrc.sh
- cd $TRAVIS_BUILD_DIR
- mv rocket.chat.latest.spk ../build
deploy:
Expand Down

0 comments on commit 868a091

Please sign in to comment.