forked from studentinsights/studentinsights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 1.69 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
language: ruby
rvm:
- ruby-2.3.0
sudo: required
services:
- postgres
branches:
only:
- master
# For AWS deploy, install the AWS CLI, so we can push asset artifacts up to S3 when merging to master.
# before_install:
# - pip install --user awscli
# - export PATH=$PATH:$HOME/.local/bin
before_install:
- echo psql --version
- gem install -v 1.10.6 bundler --no-rdoc --no-ri
# workarounds for phantomjs 1, see: https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-177592725
- mkdir travis-phantomjs
- wget https://studentinsights-public.s3.amazonaws.com/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
install:
- bundle _1.10.6_ install --retry=3
script:
- bundle exec rake db:create db:migrate DATABASE_URL=postgres://localhost/student_insights_test
- bundle exec rspec spec
- bundle exec teaspoon
# For AWS deploy, add step here:
# - aws/rails/build_from_travis.sh
env:
global:
# For AWS deploy, add in credentials for uploading to S3 and pushing to Docker Hub here:
- secure: CVsj/OoauR/2rTan1fAriyW/b92DahJsQ3zh7MAHAeQZ3atRQq4cYxd6fRSO4zoAOeTTTHp4hQ3YX+Uo765bNXsUJLKiKT8Wnin+eOG8nMGxzmKM6oxuWIt552pbwvhuX3+GS8QDT1sbHAdedlDng/97BhXeZTuzgVXN6Zigdo8=
- secure: jSWLU8N9ui5BZ7PmWmY08BrrOx1BN1IEdYhrTnv5RDWMbUyGTu62hyXOseKMy1b+URaWSiklkxLBK0uVm1oSYf/MYiDhNwFTqPn8eH7AK7MJcxSOaJ4ce0eCEeTy56Wnbljjt0jYeGMFS05uBGhUT82vYvXq4l4h7pCORJWXaPA=
notifications:
webhooks: http://project-monitor.codeforamerica.org/projects/somerville-teacher-tool/status