forked from momentum-mod/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (45 loc) · 1.02 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
language: node_js
sudo: false
dist: xenial
node_js:
- '12'
env:
- NODE_ENV=test
services:
- mysql
branches:
only:
- master
- staging
git:
depth: false
cache:
yarn: true
directories:
- client/node_modules
addons:
apt:
sources:
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
packages:
- yarn
chrome: stable
jobs:
include:
- name: "Client Tests"
before_install: cd ./client/
install: npm install -g @angular/cli && yarn install
script: npm run test
- name: "Server Tests"
before_install: cd ./server/
install: yarn install
before_script: bash ../scripts/setup-db-test.sh
script: npm test
#- name: "Client Integration Tests"
# TODO: Uncomment when we have client integration tests
#- script: cd ./client/ && xvfb-run npm run e2e
- name: "Production Build"
before_install: cd ./client/
install: npm install -g @angular/cli && yarn install
script: npm run build:prod