-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (49 loc) · 1.35 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
node_js:
- "10"
sudo: true
dist: trusty
branches:
only:
- master
- develop
before_script:
jobs:
include:
- stage: Run syntax check (tslint) and tests
script:
- cd bogenliga
- npm ci
- npm install
- ng lint
# PREPARE TESTS
#- cd bogenliga
#- export CHROME_BIN=/usr/bin/google-chrome
#- export DISPLAY=:99.0
#- sh -e /etc/init.d/xvfb start
#- sudo apt-get update
#- sudo apt-get install -y libappindicator1 fonts-liberation
#- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#- sudo dpkg -i google-chrome*.deb
# TESTS
#- npm ci
#- npm install
#- ng test --watch false
#- npm run e2e
- echo "Skip tests"
- stage: Build and deploy application
script:
- cd bogenliga
- npm ci
- npm install
- ng build --deployUrl="/swt2-bsa-frontend/" --baseHref="https://exxcellent.github.io/swt2-bsa-frontend/" --prod --configuration=offline
# DEPLOY GITHUB PAGES
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: bogenliga/dist/bogenliga
verbose: true
keep-history: true
on:
branch: master