-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
52 lines (46 loc) · 1.03 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
general:
branches:
only:
- master
- production
machine:
environment:
TERM: dumb
java:
version: oraclejdk8
post:
- curl -v -L -o cf-cli_amd64.deb 'https://cli.run.pivotal.io/stable?release=debian64&source=github'
- sudo dpkg -i cf-cli_amd64.deb
- cf -v
- cf api https://api.run.pivotal.io
- cf auth $PWS_USER $PWS_PASSWORD
- cf target -o $PWS_ORGANIZATION
checkout:
post:
- echo REACT_APP_CSS_MODULES=true > kaapi/.env
dependencies:
override:
- ./gradlew downloadDependencies
cache_directories:
- kaapi/.gradle
- kaapi/node_modules
database:
override:
- mysql -u ubuntu < setup_local_test_database.sql:
pwd: db
test:
override:
- ./gradlew test
post:
- ./gradlew build
deployment:
acceptance:
branch: master
commands:
- cf target -s acceptance
- cf push -f deployment/manifest-acceptance.yml
production:
branch: production
commands:
- cf target -s production
- cf push -f deployment/manifest-production.yml