preesm/preesm.github.io:.travis.yml@c838f8a
language: ruby
cache: bundler
gemfile: ./Gemfile
script:
- bundle exec jekyll build
#algolia --source ./ --destination ./_site --config ./_config.yml
branches:
only:
- gh-pages
- /.*/
rvm:
- 2.6
Build Config
{
"jobs": {
"include": [
{
"stage": "unit tests",
"script": "echo one"
},
{
"stage": "unit tests",
"script": "echo two"
},
{
"stage": "deploy to staging",
"deploy": {
"app": "sf-stages-staging",
"true": "sf-stages-demo",
"api_key": "$HEROKU_AUTH_TOKEN",
"provider": "heroku"
},
"script": "skip"
},
{
"stage": "test staging",
"script": "curl http://sf-stages-staging.herokuapp.com"
},
{
"stage": "deploy to production",
"deploy": {
"app": "sf-stages-production",
"true": "sf-stages-demo",
"api_key": "$HEROKU_AUTH_TOKEN",
"provider": "heroku"
},
"script": "/bin/true"
},
{
"stage": "test production",
"script": "curl http://sf-stages-production.herokuapp.com"
}
]
},
"sudo": false
}