This website works better with JavaScript.
Home
Explore
Help
Sign In
yigitcolakoglu
/
Metis-portal
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Still working on travis
production
Yiğit Çolakoğlu
4 years ago
parent
b4bb4ee5cd
commit
b3b09db3b4
1 changed files
with
31 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+31
-0
.travis.yml
+ 31
- 0
.travis.yml
View File
@ -1,4 +1,35 @@
language
:
node_js
node_js:
-
"8.6.0"
-
"node"
env:
-
WEBPACK_VERSION= # Current, from package.json
-
WEBPACK_VERSION=4
install:
# Use npm 5.7.x since it has introduced `npm ci`
-
if [[ `npm -v` != 5.7* ]]; then npm install -g npm@'>=5.7.1'; fi
-
npm ci
before_script:
-
if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi
stages:
-
lint
-
test
-
build
jobs:
include:
-
stage
:
lint
script:
# Run linter
-
npm run lint
-
stage
:
test
script:
# Run tests
-
npm run test
-
stage
:
build
script:
# Build all
-
npm run build
branches:
only:
-
production
Write
Preview
Loading…
Cancel
Save