Skip to content

Commit

Permalink
Add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Aug 13, 2018
1 parent 3209277 commit 2503a7c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -21,15 +21,17 @@ cache:
- "$HOME/.nvm/"
- "$HOME/geckodriver_$GECKODRIVER_VERSION"
- travis_phantomjs
before_install:
env:
global:
- GECKODRIVER_VERSION=0.19.1
- PHANTOMJS_VERSION=2.1.1
before_install:
- openssl aes-256-cbc -K $encrypted_a33f2fb5219d_key -iv $encrypted_a33f2fb5219d_iv -in website/deploy.pem.enc -out website/deploy.pem -d
- chmod 600 website/deploy.pem
- sudo dpkg --add-architecture i386
- sudo apt-get -qq update
- sudo apt-get install wine1.6

install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
Expand Down Expand Up @@ -101,3 +103,8 @@ deploy:
repo: GMOD/jbrowse
perl: 5.26
tags: true
- provider: script
script: website/deploy.sh
on:
perl: 5.26
tags: true
Binary file added website/deploy.pem.enc
Binary file not shown.
7 changes: 7 additions & 0 deletions website/deploy.sh
@@ -0,0 +1,7 @@
#!/bin/bash
set -o verbose
set -x
set -v
yarn
yarn build
scp -i deploy.pem -o StrictHostKeyChecking=no -r build cdiesh@jbrowse.org:~/

0 comments on commit 2503a7c

Please sign in to comment.