forked from privly/privly-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 3.18 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
before_install:
- git submodule update --init --recursive
language: ruby
rvm:
- 1.9.3
env:
global:
- DB=mysql
- TRAVIS_LAUNCHES_SAUCE_CONNECT=true # Tell the karma file that it does not need to launch Sauce connect
- RAILS_ENV=development #default to the development server for Selenium tests
- secure: "F/YevFNCQnAGYynbWVPWr6xmQOpP1E5DEf5/lMMcfs67L0jKeUJY/INf1+EUkU9Owba5pmmGPemwlagrRfXLlTjAqqWuXydHO4Gb3QFlQ6iq70YU4nIzU8xgnQU3vBQ3cfdkkLXRyzaDhNI7cZLe/eHsNYEqn4/u61tGnFhjfBY="#SAUCE_USERNAME=privly(smcgregor/privly-web)
- secure: "FPUuqMykeaogqXQ9Cq0zFD6qWA5MmKJi3Y2JTLcWiK/L6sAQZj4LOYBfebt0egKfK6E0eNYc58aWjUWYJcuvqmUGVVfyK4IES6YtQo30eEt38cLUfyvAT1ToxF7w3UtZeIo5+r7TIccbw4gs8jBfh9ByEyor4Ud95SPbA6VL3Mc="#SAUCE_ACCESS_KEY=********-****-****-****-************(privly/privly-web)
- secure: "jsFhL3SkB6ocCVJvJ4NU133VjN2MYALKrvhZXvijZ5qFWWXENDx9oeBXutdTLae/NWuTkNx+5wAGfjF+Bx2wOUjgh+AB0/UbZkRD9JJ+te4hzb3fD4DjTLIz1rC6wwkzt6QlgXJUKTREmjhtfKUYvm1bFambs4cfanD31Lplo1w="#SAUCE_URL(privly/privly-web)
- secure: "KhjeIasYp3lUvm4nJcZ5v9Kl8tPO7WXq0sdwpK0prmi+ixpG9zg3tn/WDGDy1lZchYVr/aFzrXuLVvX7Y2AYC8TENifvMrVNiK65BasFXYAsPdWS1zsOnjOM8EUIF+uLTOQU1a+E2adlyY0SSVRo/v3LGg6Wu4btmm7macSGBcg="#SAUCE_URL="http://smcgregor:********-****-****-****-************@ondemand.saucelabs.com:80/wd/hub"(smcgregor/privly-web)
- secure: igbBspDa8i+Ov1nLd+VwaN6gYGtIhp1ZBvaPHfqZbfdifrTYfLYgwHe/JlR2/Bll54S0qtyoMgqh+vIlN0bjkaq0+sgQD6DWxrnZqBwWZuVZbSjgFNpaukVL3vSysosIi9BuFVwzpD1DYFF5wtcNpm83ZAKdlZY5KVucOqqQzp8=#SAUCE_USERNAME=smcgregor(smcgregor/privly-web)
- secure: fwabmjAsNwJPTcu3+PUbe5mqxnTlAEsZoPMq69t1cZ8QYb0rmal0FkgrDd9z7XbxTovLPiWMsv5gVSyWmRoQjqm6vLzc+acjjybhqJyI8cctzaBzTuTmGjZNUkUJ2O6tsMD7haXKKibz26QUesX0bq9316fSGsh55uGbc89RwxU=#SAUCE_ACCESS_KEY=********-****-****-****-************(smcgregor/privly-web)
- secure: "RKsUBS3kTUzwXfnKFcFKlGHxUB1a3o/xRhCAw9cbKVTGr0wiTWZJ4UKq4UF0JF9AIAYSTqSS22UjCrX87GFb04YZ+H9CHdZQbEycPuNQJJA14k4J1D/NJ4PXD35o79z+SvbnUPNIWU8xOPAo1G8vIzJ8qFCZX2bcjTpimimcuhQ="#CODECLIMATE_REPO_TOKEN=************************************************(privly/privly-web)
- secure: "csM3Gh4XnywHAtMeMPgvo9WJzVZRVtYch9DauAG26V6tnxkccNJY7msBF9F87yoKzKYYjQGjAO9OTacixqIdTeNAHOnTm5FqBx9yndjljUquN//VF9E4DDYjIYzkxNORB/8lJoYcZ2lkgENXSXitbNRq0njfk7BC5FlgwNydWS8="#CODECLIMATE_REPO_TOKEN=************************************************(smcgregor/privly-web)
script:
- RAILS_ENV=test bundle exec rake --trace db:migrate test
- cd public/apps # Run the selenium tests
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then bundle exec ruby test/selenium/run_all.rb -p sauce_firefox_web -r experimental -c http://localhost:3000; fi" # Don't run on pull requests
- "if [ ${TRAVIS_PULL_REQUEST} = 'false' ]; then bundle exec ruby test/selenium/run_all.rb -p sauce_chrome_web -r experimental -c http://localhost:3000; fi" # Don't run on pull requests
before_script:
- cp config/database.travis.yml config/database.yml
- mysql -e 'create database privly_test'
- mysql -e 'create database privly_development'
- bundle exec rake db:create #Creates the Database
- bundle exec rake db:schema:load #Loads the Scheme
- bundle exec rake db:seed #Seeds the DB
- "bundle exec rails server -p 3000 &" # Start the server for Selenium testing
addons:
sauce_connect: true