forked from kubernetes/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 1.56 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
# Travis continuous integration system configuration file.
# Read more at: http://docs.travis-ci.com/user/customizing-the-build/
sudo: required
dist: xenial
language: node_js
node_js: 11.6.0
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
- eval "$(gimme 1.12.6)"
before_script:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
- sudo apt-get update
- sudo apt-get -y install docker-ce libgconf2-4
- sudo service docker restart
- docker --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