-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Asone/bugfix/circle-ci-configuration
Tests & builds passed on both travis & circle-ci. Merging.
- Loading branch information
Showing
5 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/project | ||
docker: | ||
- image: circleci/node:8.11.3-jessie-browsers | ||
environment: | ||
- NODE_ENV: "circleci" | ||
steps: | ||
- checkout | ||
- run: | ||
name: Cleaning npm cache | ||
command: npm cache clean --force | ||
- run: | ||
name : Install cordova | ||
command : sudo npm i -g cordova | ||
- run: | ||
name : see work dir | ||
command : ls -la | ||
- run: | ||
name: Rebuild node-sass to avoid install problems | ||
command: npm rebuild node-sass --force | ||
- run: | ||
name : Install ionic | ||
command : sudo npm i -g ionic | ||
- run: | ||
name: Install node modules | ||
command: npm install | ||
- run: | ||
name: echoing node env process var | ||
command: echo $NODE_ENV | ||
- run: | ||
name: Run unit tests | ||
command: npm test | ||
- run: | ||
name: Building android | ||
command: ionic cordova build android | ||
- store_artifacts: | ||
path: platforms/android/build/outputs/apk/android-debug.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters