-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
48 lines (39 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: ruby
rvm:
- 2.4.1
env:
- ES_TEST_HOST=localhost ES_TEST_PORT=9250 ES_TEST_BIN=./elasticsearch-5.1.2/bin/elasticsearch SUBMISSION_DUE_DATE='July 8 2015 23:59 UTC-3' ACCEPTANCE_DUE_DATE='August 17 2015 23:59 UTC-3' DISPLAY=:99 NODE_PATH=$NODE_PATH:/home/travis/.nvm/v0.10.36/lib/node_modules
addons:
postgresql: "9.3"
before_install:
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.tar.gz && tar -xzf elasticsearch-5.1.2.tar.gz
# config/database.yml in Rails
test:
adapter: postgresql
database: open_call_test
username: postgres
cache:
bundler: true
directories:
- node_modules
before_script:
- psql -c 'create database open_call_test;' -U postgres
- bundle exec rake db:migrate RAILS_ENV="test"
# - bundle exec rake protractor:install
# - npm install -g coffee-script
# - sh -e /etc/init.d/xvfb start
script:
- bundle exec rake
# - bundle exec rake open_call:e2e
before_deploy:
- "echo $TRAVIS_COMMIT > public/commit_track.txt"
deploy:
provider: heroku
skip_cleanup: true
run:
- "rake db:migrate"
api_key:
secure: uYBMPaMvVmNxZadZn80bBEU1LG4HgvlDO7gYOwE0whLvsrsfZH7xsNa1QQCgUFyk/b0x71WSaB1VmeWAhVeI5CnLotQRvhcD1G1ytY6a81sByIyS48UUGFOZwV2uVNyeOxvDifJ3GrtCHMmfjkBmqZHd+SyAxRH9itqGvCLP240=
app:
develop: opencallstage
master: opencall