-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (25 loc) · 1.32 KB
/
.travis.yml
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
# If the ruby version is not specified by the 'rvm' key,
# Travis CI uses the version specified in the .ruby-version file
# in the root of the repository if one is available.
# https://docs.travis-ci.com/user/languages/ruby/#using-ruby-version
language: ruby
# Caching the bundle between builds drastically reduces the time a build takes to run
# https://docs.travis-ci.com/user/caching/#enabling-bundler-caching
cache: bundler
# https://docs.travis-ci.com/user/job-lifecycle#customizing-the-installation-phase
install:
- bundle install
# You can run custom commands before the installation phase (before_install),
# and before (before_script) or after (after_script) the script phase.
# https://docs.travis-ci.com/user/job-lifecycle#the-job-lifecycle
before_script:
- RAILS_ENV=test bundle exec rails db:migrate
# script: run the build script
# https://docs.travis-ci.com/user/job-lifecycle#customizing-the-build-phase
script:
- bundle exec rspec spec/
after_success:
# https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
- curl --data "commit=$TRAVIS_COMMIT" --data "branch=$TRAVIS_BRANCH" --data "eventtype=$TRAVIS_EVENT_TYPE" http://hart-deploy.epic-hpi.de/
env:
- GIT_REPOSITORY_URL=test_repository_url GIT_REPOSITORY_NAME=test_repository_name GITHUB_USER_NAME=test_user_name GITHUB_USER_EMAIL=test_user_email