-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
56 lines (45 loc) · 1.43 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
general:
branches:
only:
- master
machine:
timezone:
Asia/Tokyo
node:
version: 5.8.0
environment:
BUILD_LARABEL_PUSH_BRANCH: master-build
FRONT_DIR: app_front
NEXT_BUILD_PROJECT: laravel-prod-image
GIT_USER_EMAIL: [email protected]
GIT_USER_NAME: atyenoria
dependencies:
pre:
- node -v
- npm -v
override:
- sudo apt-get install -y optipng jpegoptim
- cd $FRONT_DIR && rm -rf node_modules
- cd $FRONT_DIR && npm install
- cd $FRONT_DIR && npm install [email protected] -g
- cd $FRONT_DIR && npm rebuild node-sass
test:
override:
- cd $FRONT_DIR && npm run test
- cd $FRONT_DIR && npm run build
deployment:
master:
branch: master
commands:
- "bash circle/next.sh $NEXT_BUILD_PROJECT"
- "bash circle/release.sh $BUILD_LARABEL_PUSH_BRANCH"
# master:
# branch: master
# commands:
# - "git clone -b $BUILD_LARABEL_CLONE_BRANCH $LARABEL_CLONE_URL"
# - "cp -Rf dist laravel_app/public"
# - git rev-parse --abbrev-ref HEAD > app-front-version
# - git --no-pager log --pretty=oneline --abbrev-commit | head -n 1 >> app-front-version
# - mv app-front-version laravel_app/public
# - "mv release.sh laravel_app && cd laravel_app && sh release.sh $BUILD_LARABEL_PUSH_BRANCH"
# - "curl -X POST https://circleci.com/api/v1/project/HoritaWorks/${NEXT_BUILD_PROJECT}/tree/master?circle-token=${CIRCLE_CI_API_KEY}"