forked from github-education-resources/classroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.11 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
49
language: ruby
node_js:
- 7
sudo: false
before_install:
- gem update --system
- 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
- bundle exec rake factory_bot:lint
script:
- "KNAPSACK_GENERATE_REPORT=true ./bin/rake knapsack:rspec"
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
- CI_NODE_TOTAL=2
matrix:
- CI_NODE_INDEX=0
- CI_NODE_INDEX=1
notifications:
email: false
slack:
secure: hYvPi67Ka3T873Roo2WASv6anZUqnkkcvFjUrtxnYwDB14XueP9VXAbFFW8zYl9Uj6eAsPzxbGsGUzW0dUvhHXElffglNnrSh33FtbvrImnzhJvhORYh9+sFK1QWZEKj10oon715kjkRaltu2gqB0fon2bvGgFfdbLQJj8Kh6m8=