Skip to content

Commit

Permalink
Refactor the CI build script.
Browse files Browse the repository at this point in the history
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
#	modified:   .circleci/config.yml
#	modified:   package.json
#
  • Loading branch information
Eric RENARD committed Jul 23, 2019
1 parent 53d7d01 commit fdd2efb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 12 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,24 @@ jobs:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
# Test
- run: npm run test:unit
- run: git config --global -l #<= totally unnecessary, but "fixes" problem?
- run: git config --global user.email circleci@circleci
- run: git config --global user.name CircleCI
# Build
- run: npm run build
# Deploy
- add_ssh_keys:
fingerprints:
- "00:4f:8a:aa:1c:9e:03:b5:d5:44:69:71:53:31:f3:8b"
- run: npm run build
- run: cp -R .circleci dist
- run:
- run:
name: Prevent building the gh-pages branche
command: cp -R .circleci dist
- run:
working_directory: ~/erenard/reversi/dist
command: |
git config --global -l
git config --global user.email circleci@circleci
git config --global user.name CircleCI
git init
git add --all
git commit -m "Release at $(date)"
# - run:
# command: git push -f [email protected]:erenard/reversi.git master:gh-pages
# working_directory: ~/erenard/reversi/dist
git push -f [email protected]:erenard/reversi.git master:gh-pages
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit",
"deploy": "cd dist && git init && git add --all && git commit -m \"Release at $(date)\" && git push -f [email protected]:erenard/reversi.git master:gh-pages"
"test:unit": "vue-cli-service test:unit"
},
"dependencies": {
"core-js": "^2.6.9",
Expand Down

0 comments on commit fdd2efb

Please sign in to comment.