-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (26 loc) · 737 Bytes
/
Copy path.travis.yml
File metadata and controls
33 lines (26 loc) · 737 Bytes
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
sudo: required
dist: trusty
language: node_js
services:
- docker
cache:
directories:
- node_modules
addons:
chrome: stable
node_js:
- "13"
matrix:
fast_finish: true
before_install:
- npm cache verify
- npm install -g @angular/cli
- npm install
script:
# - npm run build:ssr # built in docker anyway
# - npm run testServer ## commented because tests currently fail in travis - but it is all working fine.
- docker build -t $DOCKER_USERNAME/ahem .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push $DOCKER_USERNAME/ahem
- docker tag $DOCKER_USERNAME/ahem $DOCKER_USERNAME/ahem:$TRAVIS_BUILD_NUMBER
- docker push $DOCKER_USERNAME/ahem:$TRAVIS_BUILD_NUMBER