forked from github-education-resources/classroom
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
43 lines (33 loc) · 818 Bytes
/
.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
language: ruby
node_js:
- 7.7.1
sudo: false
before_install:
- gem update --system
- nvm install 7.7.1
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.24.6
- export PATH=$HOME/.yarn/bin:$PATH
before_script:
- psql -c 'create database classroom_test;' -U postgres
- bundle exec rake db:schema:load
script:
- ./script/cibuild
cache:
bundler: true
yarn: true
install:
- bundle install --without development production --deployment --jobs=3 --retry=3
- yarn install
services:
- postgresql
- redis-server
env:
global:
- CLASSROOM_WEBHOOK_URL_PREFIX="https://example.com/github/hooks"
- GITHUB_CLIENT_ID=client_id
- GITHUB_CLIENT_SECRET=client_secret
- RAILS_ENV=test
- RACK_ENV=test
- WEBHOOK_SECRET=abcdefg
notifications:
email: false