ci: Actually do something
This commit is contained in:
parent
799e804dab
commit
d74b7397c6
1 changed files with 7 additions and 6 deletions
|
|
@ -27,8 +27,9 @@ build-job: # This job runs in the build stage, which runs first.
|
||||||
- ghc822
|
- ghc822
|
||||||
- linux
|
- linux
|
||||||
script:
|
script:
|
||||||
- echo "Compiling the code..."
|
- make release
|
||||||
- echo "Compile complete."
|
artifacts:
|
||||||
|
- build/dist/*.tar.gz
|
||||||
|
|
||||||
unit-test-job: # This job runs in the test stage.
|
unit-test-job: # This job runs in the test stage.
|
||||||
stage: test # It only starts when the job in the build stage completes successfully.
|
stage: test # It only starts when the job in the build stage completes successfully.
|
||||||
|
|
@ -46,9 +47,10 @@ lint-test-job: # This job also runs in the test stage.
|
||||||
- ghc822
|
- ghc822
|
||||||
- linux
|
- linux
|
||||||
script:
|
script:
|
||||||
- echo "Linting code... This will take about 10 seconds."
|
- make lint
|
||||||
- sleep 10
|
artifacts:
|
||||||
- echo "No lint issues found."
|
reports:
|
||||||
|
codequality: build/ci/hlint.report.json
|
||||||
|
|
||||||
deploy-job: # This job runs in the deploy stage.
|
deploy-job: # This job runs in the deploy stage.
|
||||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
|
|
@ -57,4 +59,3 @@ deploy-job: # This job runs in the deploy stage.
|
||||||
environment: production
|
environment: production
|
||||||
script:
|
script:
|
||||||
- echo "Deploying application..."
|
- echo "Deploying application..."
|
||||||
- echo "Application successfully deployed."
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue