This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
circle.yml
74 lines (66 loc) · 2.41 KB
/
circle.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
machine:
node:
version: 5.7.0
environment:
COVERALLS_REPO_TOKEN: 6LtFtuOYJuMlHy6vhsRj7lYhYuoo5ZLMs
COVERALLS_SERVICE_NAME: circle-ci
# > NOTE: these are set in the project settings within circleci
# GIT_PUSH_DRYRUN
general:
artifacts:
# compiled library
- "transpiled-libraries"
# code coverage report
- "code-coverage"
# deployment cache
- "depoyment-cache"
dependencies:
pre:
# install dependencies
- npm install -g gulp
- npm install -g typescript
post:
# compile typescript
- npm run build:ts
test:
pre:
# vet all TypeScript build code
- gulp vet-build-ts --verbose
# vet all TypeScript library code
- gulp vet-lib-ts --verbose
# vet all non-generated JavaScript code
- gulp vet-lib-js --verbose
post:
# move junit test report => build artifacts
- mkdir $CIRCLE_TEST_REPORTS/junit
- mv ./reports/test/*.xml $CIRCLE_TEST_REPORTS/junit/testrun.xml
# send code coverage report => coveralls.io
- "cat ./reports/code-coverage/**/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
# move code coverage => build artifacts
- mkdir $CIRCLE_ARTIFACTS/code-coverage
- mv ./reports/code-coverage/**/lcov-report/** $CIRCLE_ARTIFACTS/code-coverage
deployment:
release:
branch: master
commands:
# pre
# > set git
- git config --global user.name "ngfabricbot"
- git config --global user.email "ngofficeuifabric@andrewconnell.com"
# > tag repo with new version & push back to GitHub
- sudo chmod 755 ./build/scripts/tag-release.sh
- ./build/scripts/tag-release.sh --srcwd=$PWD
# deployment
- mkdir $CIRCLE_ARTIFACTS/transpiled-libraries
# > build libraries
- sudo chmod 755 ./build/scripts/build-library.sh
- ./build/scripts/build-library.sh --srcwd=$PWD --artifactwd=$CIRCLE_ARTIFACTS/transpiled-libraries
# update deployments
# > create deployment cache artifact (where local repos will be updated)
- mkdir $CIRCLE_ARTIFACTS/depoyment-cache
# > deploy to npm, bower, cdnjs
- sudo chmod 755 ./build/scripts/update-package-repo.sh
- ./build/scripts/update-package-repo.sh --srcwd=$PWD --pkgwd=$CIRCLE_ARTIFACTS/depoyment-cache
# > deploy to nuget
- sudo chmod 755 ./build/scripts/update-nuget-repo.sh
- ./build/scripts/update-nuget-repo.sh --srcwd=$PWD --pkgwd=$CIRCLE_ARTIFACTS/depoyment-cache