Skip to content
Snippets Groups Projects
.travis.yml 1.08 KiB
Newer Older
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
sudo: required
language: node_js
S. Li's avatar
S. Li committed
branches:
westmakaha's avatar
westmakaha committed
  only:
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
node_js:
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
before_install:
S. Li's avatar
S. Li committed
- curl https://install.meteor.com | /bin/sh
Gabriel Engel's avatar
Gabriel Engel committed
- npm install -g npm@'>=2.13.5'
- cd $TRAVIS_BUILD_DIR
- mkdir ../build
- export TAG=$(git describe --abbrev=0 --tags)
S. Li's avatar
S. Li committed
- export SANDSTORM_VERSION=$(curl -f "https://install.sandstorm.io/dev?from=0&type=install")
- export PATH=$PATH:/tmp/sandstorm-$SANDSTORM_VERSION/bin
S. Li's avatar
S. Li committed
- cd .sandstorm
- ./preprcbuild.sh
SingLi's avatar
SingLi committed
- cd $TRAVIS_BUILD_DIR
Gabriel Engel's avatar
Gabriel Engel committed
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then echo "Building PR $TRAVIS_PULL_REQUEST"; meteor build ../build; exit $?; fi
SingLi's avatar
SingLi committed
- meteor build ../build
- cp ../build/Rocket.Chat.tar.gz  /home/vagrant
- cd .travis
- sh ./namefiles.sh
- cd $TRAVIS_BUILD_DIR/.sandstorm
S. Li's avatar
S. Li committed
- ./buildrc.sh
- cd $TRAVIS_BUILD_DIR
SingLi's avatar
SingLi committed
- mv rocket.chat.latest.spk ../build
Gabriel Engel's avatar
Gabriel Engel committed
deploy:
  provider: s3
  access_key_id: "AKIAIKIA7H7D47KUHYCA"
  secret_access_key: $ACCESSKEY
  bucket: "rocketchatbuild"
  skip_cleanup: true
  local_dir: ../build
  on:
after_deploy:
- cd .travis
S. Li's avatar
S. Li committed
- ./builddocker.sh