Skip to content
Snippets Groups Projects
Commit a5e23959 authored by S. Li's avatar S. Li
Browse files

declutter travis.yml II

parent 517bd04b
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -euo pipefail
export SANDSTORM_VERSION=$(curl -f "https://install.sandstorm.io/dev?from=0&type=install")
cd /tmp
curl https://dl.sandstorm.io/sandstorm-$SANDSTORM_VERSION.tar.xz | tar -xJf -
export PATH=$PATH:${PWD}/sandstorm-$SANDSTORM_VERSION/bin
sudo mkdir -p /home/vagrant
sudo chown -R travis /home/vagrant
sudo mkdir -p /opt
sudo chown -R travis /opt
cd /opt
curl curl https://dl.sandstorm.io/meteor-spk-0.1.8.tar.xz | tar -xJf -
ln -s meteor-spk-0.1.8 meteor-spk
cp -a /bin/bash /opt/meteor-spk/meteor-spk.deps/bin/
cp -a /lib/x86_64-linux-gnu/libncurses.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/
cp -a /lib/x86_64-linux-gnu/libtinfo.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/
cp -r . /opt/app
...@@ -6,41 +6,14 @@ branches: ...@@ -6,41 +6,14 @@ branches:
- master - master
node_js: node_js:
- '0.12' - '0.12'
#addons:
# apt:
# sources:
# - google-chrome
# packages:
# - google-chrome-stable
before_install: before_install:
- curl https://install.meteor.com | /bin/sh - curl https://install.meteor.com | /bin/sh
- npm install -g npm@'>=2.13.5' - npm install -g npm@'>=2.13.5'
- mkdir -p node_modules - mkdir -p node_modules
#- npm install phantomjs
#- npm install velocity-cli
#- export PHANTOMJS_BIN=./node_modules/phantomjs/bin/phantomjs
#- export JASMINE_BROWSER=PhantomJS
#- export DEBUG=1
#- export JASMINE_DEBUG=1
#- export VELOCITY_DEBUG=1
#- export VELOCITY_DEBUG_MIRROR=1
- export SANDSTORM_VERSION=$(curl -f "https://install.sandstorm.io/dev?from=0&type=install")
- cd /tmp
- curl https://dl.sandstorm.io/sandstorm-$SANDSTORM_VERSION.tar.xz | tar -xJf -
- export PATH=$PATH:${PWD}/sandstorm-$SANDSTORM_VERSION/bin
- sudo mkdir -p /home/vagrant
- sudo chown -R travis /home/vagrant
- sudo mkdir -p /opt
- sudo chown -R travis /opt
- cd /opt
- curl curl https://dl.sandstorm.io/meteor-spk-0.1.8.tar.xz | tar -xJf -
- ln -s meteor-spk-0.1.8 meteor-spk
- cp -a /bin/bash /opt/meteor-spk/meteor-spk.deps/bin/
- cp -a /lib/x86_64-linux-gnu/libncurses.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/
- cp -a /lib/x86_64-linux-gnu/libtinfo.so.* /opt/meteor-spk/meteor-spk.deps/lib/x86_64-linux-gnu/
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
- mkdir ../build - mkdir ../build
- cp -r . /opt/app - cd .sandstorm
- ./preprcbuild.sh
script: script:
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then echo "Building PR $TRAVIS_PULL_REQUEST"; meteor build ../build; exit $?; fi - if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then echo "Building PR $TRAVIS_PULL_REQUEST"; meteor build ../build; exit $?; fi
- export TAG=$(git describe --abbrev=0 --tags) - export TAG=$(git describe --abbrev=0 --tags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment