-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 loc) · 1.51 KB
/
.travis.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
# DEPRECATED: due to travis moving from .org to .com and loosing all my env variables and setup. No more travis.
language: node_js
# node_js:
# - '13.7.0'
# os: linux
# services:
# - docker
# before_install:
# - npm -v
# - echo "//registry.lina.codes/:_authToken=\${NPM_TOKEN}" > ~/.npmrc
# - echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
# - echo "@prtf:registry=https://registry.lina.codes/" >> ~/.npmrc
# - export GITHUB_USER=ragauskl:$GITHUB_TOKEN
# - git config --global user.email "$GITHUB_EMAIL"
# - git config --global user.name "$GITHUB_USER"
# - git config user.email "$GITHUB_EMAIL"
# - git config user.name "$GITHUB_USER"
# - git remote set-url origin https://[email protected]/ragauskl/portfolio.git
# stages:
# - name: sentry
# if: commit_message ~= /--sentry|-s/
# - name: build_app
# if: type = pull_request
# - name: deploy_app
# if: type = push AND branch = master
# jobs:
# include:
# - stage: sentry
# script: cd dev && npm i && npm start
# - stage: build_app
# script: cd app && npm run build
# - stage: deploy_app
# # If this test is false, then it's a commit from merge request
# script: "test -z $(git rev-parse --verify $TRAVIS_COMMIT^2 2> /dev/null) || (
# cd app && npm run build && npm run deploy
# )"
# branches:
# only:
# - master
# - develop
# install:
# - npm i -g @angular/cli
# - cd api
# - npm i
# - cd ../app
# - npm i
# - cd ..