forked from kubernetes/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (50 loc) · 1.7 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
# 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
- node_modules
before_install:
- export NG_CLI_ANALYTICS=ci
- export GO111MODULE=on
- export PATH=$PATH:$GOPATH/bin
- eval "$(gimme 1.12.6)"
- cd $HOME
- mkdir -p $GOPATH/src/github.com/
- mv $HOME/build/kubernetes $GOPATH/src/github.com/
- export TRAVIS_BUILD_DIR=$GOPATH/src/github.com/kubernetes/dashboard
- cd $TRAVIS_BUILD_DIR
- mkdir -p $TRAVIS_BUILD_DIR/.tmp/src/github.com/kubernetes/dashboard/src/app
- cp -r $TRAVIS_BUILD_DIR/src/app/backend $TRAVIS_BUILD_DIR/.tmp/src/github.com/kubernetes/dashboard/src/app
- ln -s $TRAVIS_BUILD_DIR/vendor $TRAVIS_BUILD_DIR/.tmp/src/github.com/kubernetes/dashboard/src/app/backend/vendor
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
- sudo service docker restart
- docker --version
jobs:
include:
- stage: test
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 test:e2e
- stage: deploy
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- npm run docker:push:head:cross
stages:
- test
- name: deploy
if: branch = master AND type != pull_request