This repository was archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (40 loc) · 1.33 KB
/
Copy path.travis.yml
File metadata and controls
40 lines (40 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: scala
scala:
- 2.10.3
jdk:
- oraclejdk7
node_js: 0.1
branches:
only:
- master
before_install:
- sudo $(type -P npm) install -g grunt-cli
- sudo $(type -P npm) install -g bower
- sudo $(type -P npm) install
- bower install
script: sbt ++$TRAVIS_SCALA_VERSION clean test grunt
env:
global:
secure: Mv6YWhcoTDRyLVFKwJosx+EFJ2KwUI+BguYJ6R7qsmHlW4nYz/SwFV4zlEdkUOrncgRXOetsH7xSvgtOA1wrM8az5UWhYKVnVN2W0YIMqH3osNs/8fPRH3UeaJkmXOqEOo4Ib+JPJVw95pVHZDcjCjQQCGX51c+9ovnMS7P/808=
after_success:
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/gilday/fast-grades
site > /dev/null 2>&1
- cd site
- if git checkout gh-pages; then git checkout -b gh-pages; fi
- git rm -r .
- cp -R ../target/webapp/* .
- cp ../target/webapp/.* .
- git add -f .
- git config user.email "me@johnathangilday.com"
- git config user.name "Johnathan Gilday"
- git commit -am "adding built site files to gh-pages [ci skip]"
- git push https://${GH_OAUTH_TOKEN}@github.com/gilday/fast-grades HEAD:gh-pages >
/dev/null 2>&1
- cd ..
deploy:
provider: heroku
buildpack: https://github.com/heroku/heroku-buildpack-scala
strategy: git
app: fast-grades
api_key:
secure: OqC3uRTosFn1DiOB2Poew2F8gcMsClm3TqEz3H3XifEo0Cz8JrLEGl75Sbfk1bOqUs6LiiJiquIQJNyVmZSRepyBccIlzfofp4khc8m79YO1PU1vybehzI05tE9NvJCOznzqW3wr4wkyuVjieq/Dm8W8tGPiMd3WRqq+hXOGKKs=