forked from snapcore/snapweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.26 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
sudo: required
dist: trusty
language: go
go:
- 1.6
node_js:
- "6.11.0"
services: docker
env:
- TEST_SUITE="--static"
- TEST_SUITE="--unit"
matrix:
include:
- env: BUILD=1
go: 1.6
cache: false
cache:
yarn: true
directories:
- node_modules
before_install:
- if [ $encrypted_527ca8567c65_key ]; then eval "$(ssh-agent)"; ./tests/setup-deploy-key.sh; fi
install:
- NODE_ENV=development npm install
- ./scripts/get-go-deps.sh
script:
- if [ -z "$BUILD" ]; then sh -v ./run-checks $TEST_SUITE; fi
- if [ ! -z "$BUILD" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./scripts/snap-in-docker.sh; ./tests/setup-and-run-tests.sh $user $host $port; fi
after_success:
- go get github.com/mattn/goveralls
- goveralls -coverprofile=.coverage-go/coverage.out -service=travis-ci
- yarn install coveralls
- cat .coverage-js/report-lcov/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- mkdir -p "${HOME}/.config/snapcraft"
- openssl aes-256-cbc -K $encrypted_e72199912f3d_key -iv $encrypted_e72199912f3d_iv
-in .snapcraft/travis_snapcraft.cfg -out "${HOME}/.config/snapcraft/snapcraft.cfg" -d
deploy:
'on':
branch: master
provider: script
script: if [ ! -z "$BUILD" ]; then ./scripts/push-in-docker.sh; fi
skip_cleanup: true