forked from kubernetes/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (67 loc) · 1.82 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
70
71
72
73
74
75
76
77
# Travis continuous integration system configuration file.
# Read more follows:
# * https://docs.travis-ci.com/user/customizing-the-build/
# * https://docs.travis-ci.com/user/reference/bionic/
# * https://docs.travis-ci.com/user/installing-dependencies/
# * https://docs.travis-ci.com/user/firefox/
# * https://config.travis-ci.com/ref/job/addons/apt
sudo: required
dist: bionic
language: node_js
node_js: 12.16.0
addons:
firefox: "latest"
apt:
packages:
- google-chrome
sources:
- google-chrome-stable
update: true
git:
depth: 500
quiet: true
cache:
directories:
- .cached_tools
- ~/.cache
- node_modules
before_install:
- export NG_CLI_ANALYTICS=ci
- export DOCKER_CLI_EXPERIMENTAL=enabled
- export GO111MODULE=on
- export GOPROXY=https://proxy.golang.org
- export PATH=$PATH:$GOPATH/bin
- export NODE_OPTIONS=--max-old-space-size=8192
- eval "$(gimme 1.13.6)"
# `npm ci` will run between `before_install` and `before_script`.
before_script:
- echo "Recheck versions before job."
- go version
- docker --version
- google-chrome-stable --version
- firefox --version
jobs:
include:
- stage: test
before_script:
- aio/scripts/install-codegen.sh
script: npm run check
- script: npm run test:coverage
after_success:
- rm -rf $TRAVIS_BUILD_DIR/.tmp
- bash <(curl -s https://codecov.io/bash)
- script: npm run cluster:start && npm run e2e
- stage: deploy
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- npm run docker:push:head
- stage: release
script:
- docker login -u $DOCKER_RELEASE_USER -p $DOCKER_RELEASE_PASS
- npm run docker:push
stages:
- test
- name: deploy
if: branch = master AND type != pull_request
- name: release
if: tag IS present AND type != pull_request