-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
69 lines (64 loc) · 1.61 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
sudo: required
language: ruby
services:
- docker
matrix:
include:
# run the code linters/formatters
- name: "Code Formatting Tests"
language: node_js
node_js:
- "14"
cache: npm
before_script:
- npm ci
script:
# allow these tests to fail for now...
- ./tests/run-formatting-tests.sh
- name: "Ruby Formatting Tests"
language: ruby
services:
- docker
before_script:
- cp dev.env .env
- docker-compose up --build -d backend
- docker ps -a
script:
- ./tests/run-ruby-linting-tests.sh
after_failure:
- docker-compose logs
after_script:
- docker-compose down
# run the development build and test suites
- name: "Unit Tests"
language: ruby
services:
- docker
before_script:
- cp dev.env .env
- docker-compose up --build -d
- docker ps -a
- docker-compose run backend rake db:create
- docker-compose run backend rake db:migrate
- sleep 30
script:
- ./tests/run-unit-tests.sh
after_failure:
- docker-compose logs
after_script:
- docker-compose down
# run the production build/deployment
- name: "Production Build"
language: ruby
services:
- docker
before_script:
- cp dev.env .env
- docker-compose up --build -d
- docker ps -a
script:
- docker-compose run frontend npm run dev-build
after_failure:
- docker-compose logs
after_script:
- docker-compose down