-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
26 lines (26 loc) · 989 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
language: crystal
jobs:
include:
- stage: Continious integration
name: Crystal specs
before_install:
- nvm install 9
- npm install js-yaml shelljs
- node .travis/inject-dependencies.js
env: DATABASE_URL=sqlite3://./crystalworld.db JWT_SECRET_KEY=63a051d73d71c997d38946f82e708301
script:
- crystal spec
- name: Integration tests
env: DATABASE_URL=sqlite3://./crystalworld.sqlite3 JWT_SECRET_KEY=63a051d73d71c997d38946f82e708301 HOST=localhost PORT=5000
before_install:
- nvm install 9
- npm install js-yaml shelljs
- npm install -g npx
- node .travis/inject-dependencies.js
script:
- crystal build src/bin/cake.cr -o cake
- crystal build src/bin/server.cr -o server
- ./cake db:migrate
- ./server &
- git clone https://github.com/gothinkster/realworld.git && cd realworld/api
- APIURL=http://localhost:5000 ./run-api-tests.sh