summaryrefslogblamecommitdiff
path: root/.travis.yml
blob: b171ce67a664923c4b4ac0cb83b821970d0005f3 (plain) (tree)
1
2
3
4
5
6
7
                                   





                                                                                                   












                                                                                                                                                                                                                                                                   
                                                                                                                                
# this builds the spec using jekyll
# based on http://www.paperplanes.de/2013/8/13/deploying-your-jekyll-blog-to-s3-with-travis-ci.html
language: ruby
rvm:
  - 1.9.3
script: bundle exec jekyll build -s spec/ -d build/spec
install: bundle install

# https://gist.github.com/kzap/5819745, http://docs.travis-ci.com/user/travis-pro/
env:
  - secure: "WWU490z7DWAI8MidMyTE+i+Ppgjg46mdr7PviF6P6ulrPlRRKOtKXpLvzgJoQmluwzEK6/+iH7D5ybCUYMLdKkQM9kSqaXJ0jeqjOelaaa1LmuOQ8IbuT8O9DwHzjjp/n4Lj/KRvvN4nGxCMI7HLla4gunvPA7M6WK7FA+YKCOU=" # set PRIV_KEY_SECRET to password used to encrypt spec/id_dsa_travis.enc

# using S3 would be simpler, but we want to upload to scala-lang.org
# after_success: bundle exec s3_website push --headless
# the key is restricted using forced commands so that it can only upload to the directory we need here
after_success:
  - openssl aes-256-cbc -pass "pass:$PRIV_KEY_SECRET" -in spec/id_dsa_travis.enc -out spec/id_dsa_travis -d -a
  - ssh-add -D
  - chmod 600 spec/id_dsa_travis
  - ssh-add spec/id_dsa_travis
  - rsync -e 'ssh -o StrictHostKeyChecking=no' -rzv build/spec/ scalatest@chara.epfl.ch:/home/linuxsoft/archives/scala/spec/2.11/