-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (26 loc) · 2.65 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
sudo: required
services:
- docker
language: node_js
node_js:
- node
cache: yarn
script:
- yarn lint
- yarn test
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=sstrigler/smrtrpck
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi`
- docker build -f Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
notifications:
webhooks: https://fiddl.strigler.de/smrtrpck/
env:
global:
- secure: wcUENzt/73oTdya6eh+JLA1/m93y1ZtkJxaEmSqHpQq8lQ4+jY+Z5yxkrSTw3wy8UgOzLmGz2Icm1GPzGqfFsUatKiIOoysh5K12NpPsDX7DJlSWBN0vCEYb0YtKYCrtMlBKFubZ22DrVE9WLyRyeq+AoIUpw1d3+DpJZx/B/0DqvuGV8g90/n/qIcutr3oa3kMdCe6R64/1u9FwK/GQ/IjP+PyN13mFxk+tRsRPkdarOZK1ak3T22yJmrz0BPVJzggbcn55U96kBe3dqJNejmyo9qkM5hp3pzb8d1jLdO09/poGsDbsSHNBPP8NKy8c6QKwyDGuZJr++73Ntnr42P42sP63Jb0itvftuG7zYuqAz3nwXieujEzM8oCh+nbcvfahsJFpyDmXnUvjhzQs59FQDbkiuGTMZQyVPENqGkOZoVnUlIjPLJE12+EEPP35DXF9g77m6t3LHU8Y0a1gsyp/1H46Y90AlegIAf3LZcL85o3Nlto/iBPK8wi7wcUlPnhH9La8m8jJAGpQfrGgh3G6MNI6kPXyJTH9p+n/oRj/k2ho4KFGQVfIwLG92wNpLfadWujHilSQk02LTS06bf62btMUV8ZHJca9v5+ov+egK3guknp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